1. 安装httpdapache
yum install httpd #安装apache
2. 启动httpd服务器
systemctl start httpd.service #启动apache
3. 随服务器自启动tcp
systemctl enable httpd.service #启用自动开启
4.防火墙开通80spa
firewall-cmd --zone=public --add-port=80/tcp --permanent #添加80端对开对外
firewall-cmd --reload #重启防火墙 必须重启才能生效
5. 配置文件code
/etc/httpd/conf/httpd.conf #配置文件目录