http://localhost/在 Windows 7 上不工作.有什么问题?

http://localhost/ not working on Windows 7. What#39;s the problem?(http://localhost/在 Windows 7 上不工作.有什么问题?)
本文介绍了http://localhost/在 Windows 7 上不工作.有什么问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

我在 Windows 7(测试版)上打开 http://localhost/ 时遇到了大问题.我安装了这个操作系统,一切都很好;当我安装 Wamp 时,我看到 localhost 根本不起作用.我只看到这个错误:

I have a big problem opening http://localhost/ on Windows 7 (beta). I installed this os and everything went great; when I installed Wamp I saw that localhost is not working at all. I just see this error:

Firefox 无法与 localhost 上的服务器建立连接.

Failed to Connect

Firefox can't establish a connection to the server at localhost.

在 Mozilla 和资源管理器中.

in Mozilla and Explorer.

我删除了 Wamp,几周后(这意味着从今天起两周)我在 Windows 7 上安装了 NetBeans.我创建了一个测试 PHP 脚本,当我调试它时,我再次遇到相同的错误.我试图用 ip 127 访问它......但还是一样.有什么问题?
当我安装 NetBeans 时,我将其安装在 8080 端口.

I removed Wamp and after some weeks (that means two weeks from today) I installed NetBeans on Windows 7. I created a test PHP script and when I debug it, I get the same error again. I tried to access it with ip 127.... but still the same. What is the problem?
When i installed NetBeans I installed it in port 8080.

推荐答案

要解决 80 端口问题,请执行以下操作:

To fix the port 80 problem do:

从 cmd 以管理员身份:

From cmd as administrator:

  1. sc config http start= demand(你需要在等号之后而不是之前有一个空格)
  2. 重启
  3. 以管理员身份运行命令 (netsh http show servicestate) 以检查端口 80 是否正在使用中
  1. sc config http start= demand (you need a space after the equal sign and not before)
  2. Reboot
  3. Run the command (netsh http show servicestate) as administrator to check that the port 80 is in use

运行此命令后,您可以禁用http.sys,如下所示:

After you have run this command, you can disable http.sys as follows:

  1. net stop http(停止进程)
  2. Sc config http start= disabled(如果你想永久禁用该服务)
  1. net stop http (stop the process)
  2. Sc config http start= disabled (if you want to disable the service forever)

它对我有用.

这篇关于http://localhost/在 Windows 7 上不工作.有什么问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

相关文档推荐

DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)