Apache环境,localhost一直在加载中,但127.0.0.1可以正常访问
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了Apache环境,localhost一直在加载中,但127.0.0.1可以正常访问,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含2765字,纯文字阅读大概需要4分钟。
内容图文
![Apache环境,localhost一直在加载中,但127.0.0.1可以正常访问](/upload/InfoBanner/zyjiaocheng/149/59881c7651234d4c96e5db4dc6fdd76f.jpg)
Apache环境
localhost:82
问题:
浏览器输入localhost:82,没有响应(昨天还一切正常),但是127.0.0.1:82可以访问
情况:
1.错误日志如下
apache error.log
httpd.conf 红笔是我所更改过的地方
hosts文件如下
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
127.0.0.1 localhost
localhost 127.0.0.1
#0.0.0.1 mssplus.mcafee.com
0.0.0.1 mssplus.mcafee.com
回复内容:
Apache环境
localhost:82
问题:
浏览器输入localhost:82,没有响应(昨天还一切正常),但是127.0.0.1:82可以访问
情况:
1.错误日志如下
apache error.log
httpd.conf 红笔是我所更改过的地方
hosts文件如下
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
127.0.0.1 localhost
localhost 127.0.0.1
#0.0.0.1 mssplus.mcafee.com
0.0.0.1 mssplus.mcafee.com
1:检查一下端口是不是正常监听状态。是不是apache环境问题。
2:看看phpinfo()能不能执行。 看看是不是php执行环境问题。
3:看看代码是不是里面有死循环或者bug。display_error打开看看。
4:楼主,起码贴个代码或者页面什么啊。。这样定位问题捉瞎状态啊。囧
在httpd.conf文件末尾加上
AcceptFilter http none
AcceptFilter https none
然后重启看看
网上百度出来的结果不知道准不准
http://www.oschina.NET/questi...
http://httpd.apache.org/docs/...。
从错误日志来看是ServerName绑定失败, 所以httpd也还没有正确启动
根据错误信息google, 找到的是这个, 先尝试下吧
http://www.t086.com/code/apac...
如果还有问题, 尝试修改ServerName?
1.把你的hosts文件贴出来。
2.试试访问127.0.0.1:82
感谢大家的热心帮助,我卸载了重新装了一个,可以运行了
内容总结
以上是互联网集市为您收集整理的Apache环境,localhost一直在加载中,但127.0.0.1可以正常访问全部内容,希望文章能够帮你解决Apache环境,localhost一直在加载中,但127.0.0.1可以正常访问所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。