httpd已经安装,但是/var/www/html网页打不开
来源:互联网 发布:网络授权书 编辑:程序博客网 时间:2024/06/05 11:38
今天遭遇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,执行一下把,问题解决了
阅读全文
0 0
- httpd已经安装,但是/var/www/html网页打不开
- apache的/var/www/html无法访问
- File does not exist: /var/www/html/favicon.ico
- Directory index forbidden by Options directive: /var/www/html/
- 安装httpd
- httpd安装
- Fatal error: Call to undefined function: get_headers() in /var/www/html/t.php on line 5
- easyhadoop:failed to open stream:Permission denied in /var/www/html/index.php
- yii Unable to write the file '/var/www/html/blog/protected/models/User.php'
- Notice: Undefined variable: data in /var/www/html/bbeden/modoer/ecshop/includes/lib_base.php on line
- 解决“出现Unable to retrieve 192.168.0.100/var/www/html/images/install.img错误”
- apache报错: Directory index forbidden by Options directive: /var/www/html
- Linux下面怎样可以把Apache网站根目录:/var/www/html/ 设置成Vsftp默认目录?
- Cannot redeclare class xxx in /var/www/html/xxx on line xx
- Undefined variable: pdo in <b>/var/www/html/gm/application/library/db/dbBase.php
- Warning: mysqli_query() expects parameter 1 to be mysqli, null given in /var/www/html/php..解决方案
- 已经安装了MSXML6.0,但是安装office2010时还是提示没有安装
- 电脑可以打开QQ但是打不开网页
- java 获取e.printStackTrace() 的具体信息,赋值给String 变量 并返回
- MVC自定义IModelinder实现Json字符串参数转Dictionary<string,string>
- hive多分隔符问题
- 系统启动流程测试记录
- iframe结构的网站按F5刷新子页面的实现方式
- httpd已经安装,但是/var/www/html网页打不开
- python中的普通方法、类方法和静态方法
- spring两个核心类
- Android开发之自定义Behavior
- linux下查看mysql相关路径以及配置不区分大小写方法
- k-NN算法实现数字识别案例
- 凿壁系列
- centos7.x 安装mysql5.6
- vue组件之间的多种通信方法