centos7下安装配置apache+nginx+php+mysql

一、安装apache
1、yum install -y httpd

2、修改端口号为8080
vim /etc/httpd/conf/httpd.conf
把listen 80 改为listen 8080
3、启动
service httpd start

3、设置开机启动
systemctl enable httpd

二、安装nginx
1、
yum install -y epel-release

2、yum install -y nginx
service nginx start
systemctl enable nginx