如何设置 允许www服务通过服务器(80端口)

允许www服务通过服务器(80端口)及关掉Linux系统的SELinux。

防火墙设置放通http协议就可以

# 以下操作为7和8的 系统
[root@servera ~]# firewall-cmd --permanent --add-service=http
[root@servera ~]# firewall-cmd --reload

至于selinux,直接修改配置文件并重启机器就可以永久disable

echo ---------------关闭Selinux------------------------
setenforce 0
sed -i 's#SELINUX=enforcing#SELINUX=disabled#' /etc/selinux/config