无法访问本地主机
我曾经能够通过我的 wampserver 访问我的本地主机,但现在不行了。它只是在每个继续加载的浏览器中打开一个空白页面。我做了一些研究,发现这个问题通常发生在使用端口 80 的程序(例如 Skype)干扰时。嗯,我确实有 Skype,但我未选中“使用端口 80 和 443 作为传入连接的替代选项”选项,所以不是这样。我什至在 cmd 屏幕中输入 netstat 来检查哪个程序可能正在使用端口 80,但它是打开的,所以我怀疑问题出在其他地方。此外,即使在编辑 httpd.conf 并将端口交换到 8080 之后,它仍然什么也不做(是的,我浏览到了 localhost:8080)。我也不认为我的主机文件有问题。它清楚地写着“127.0.0.1 localhost”,并且前面没有哈希标签。我已经重新安装了我的 wampserver,甚至尝试了 xampp 但没有骰子。谁能告诉我我是否遗漏了什么。 提前致谢。
I used to be able to access my localhost through my wampserver but not anymore. It just opens up a blank page in every browser that keeps on loading. I did some research and noticed this problem usually occurs when a program using port 80 (such as Skype) is interfering. Well I do have skype but I unchecked the "use port 80 and 443 as alternatives for incoming connections" option so that's not it. I even typed netstat in the cmd screen to check which program could be using port 80 but it's open so I suspect the problem to be elsewhere. Besides, even after editing httpd.conf and swapping my port to 8080 it still does nothing (and yes I surfed to localhost:8080). I don't think my hosts file is to blame either. It clearly says "127.0.0.1 localhost" and there's no hash tag in front of it. I already reinstalled my wampserver and even tried xampp but no dice. Can anyone please tell me if I'm missing something.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果你没有找到哪个服务绑定了80端口;例如,编辑 httpd.conf 并将 Listen 参数从 80 更改为 81。
if you dont find which service binds the port 80 ; edit you httpd.conf and change the Listen parameter from 80 to 81 for example.