1、安装Apache服务程序yum install httpd -y2、将Apache服务启动并添加到开机自启systemctl start httpdsystemctl enable httpd3、关闭SE linuxsetenforce 04.删除欢迎界面rm -rf /etc/httpd/conf.d/welcome.confcd /var/www/html/