gpt4 book ai didi

php - 瓦普2.5 |远程设备或资源不接受连接

转载 作者:行者123 更新时间:2023-11-29 07:28:16 25 4
gpt4 key购买 nike

我最近在运行 Windows 7 x64 的 Hyper-V 虚拟机上安装了 WAMP Server 2.5。

当我尝试访问本地主机时,它将无法工作。使用 Network Diag 运行测试返回以下错误:“远程设备或资源不会接受连接”

我已安装所需的 Visual C++ Redistributable 软件包(以及一些:vcredist_x86_2008、vcredist_x86_2010、vcredist_x64_2010、vcredist_x64_2012)

Apache 错误日志:

[Mon Nov 16 12:19:11.305674 2015] [mpm_winnt:notice] [pid 2964:tid 380] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Mon Nov 16 12:19:13.385104 2015] [mpm_winnt:notice] [pid 2700:tid 304] AH00364: Child: All worker threads have exited.
[Mon Nov 16 12:19:14.314065 2015] [mpm_winnt:notice] [pid 2964:tid 380] AH00430: Parent: Child process 2700 exited successfully.

PHP 错误日志和 MySQL 日志为空。

我还运行了 netstat -a -b 命令来查看什么正在监听端口 :80,但什么也没有。

如果我从 Apache 运行测试端口 80,它会返回您的端口 80 并未实际使用。

当我转到 Apache > 服务 > 安装服务时,返回的结果是

Your port 80 is available, Install will proceed.
Press Enter to continue...

知道为什么这不起作用吗?我第一次安装时运行得很好,然后我重新启动了服务,它就不再启动它们了。

谢谢。

最佳答案

我在这里提供的解决方案对我有用:

  1. 转到C:\Windows\System32\drivers\etc
  2. 将文件主机复制到桌面
  3. 打开它并确保该行:

    #::1 本地主机

    #前面有\,例如:

    \#::1 本地主机

  4. 保存
  5. 将此文件移回 C:\Windows\System32\drivers\etc 并替换

关于php - 瓦普2.5 |远程设备或资源不接受连接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33737176/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com