一:安装Apache
1、查看是否安装过Apache:rpm -qa | grep httpd
2、有就卸载httpd:yum remove -y "httpd*"
3、重新安装httpd:yum install -y httpd
4、查看启动状态:systemctl status httpd
5、启动httpd:systemctl start httpd
6、添加开机启动:systemctl enable httpd
7、设置防火墙tcp80端口:
firewall-cmd --zone=public --add-port=80/tcp --permanent
firewall-cmd --reload
firewall-cmd --query-port=80/tcp
8、使用浏览器访问192.168.132.137