admin管理员组文章数量:1635828
今天遭遇httpd已经安装,但是/var/www/html网页打不开这个情况,网上有很多解决方案,包括关闭防火墙、selinux、或者是在httpd.conf上加ServerName localhost什么的,然而没有一个有用的,恩,这个情况仅仅是针对我不是针对你,或许这个方法对你有用,我会把具体方法给你们,你们可以一一尝试:
1. chkconfig iptables off
2.临时关闭selinuxsetenforce 0,
永久关闭selinux
vi /etc/sysconfig/selinux
把里边的一行改为
SELINUX=disabled
改了之后保存,然后重启就可以了。
3./etc/httpd/conf/httpd.conf添加 ServerName localhost
-----------------------------------------------------------------华丽的分割线------------------------------------------------------------
上面方法我都试了,并没有用,然后我就发现了这个方法
OK,执行一下把,问题解决了
版权声明:本文标题:httpd已经安装,但是varwwwhtml网页打不开 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://www.elefans.com/dianzi/1729218592a1190690.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论