根目录下 网站不能访问 解决方法

1.chkconfig iptables off

2.selinuxsetenforce0,

永久关闭selinux

 vi/etc/sysconfig/selinux修改SELINUX=disabled

3./etc/httpd/conf/httpd.conf添加ServerName localhost

猜你喜欢

转载自blog.csdn.net/qq_37897490/article/details/79554576