wamp服务器不工作

发布于 2024-09-30 21:25:44 字数 54 浏览 0 评论 0原文

我已经停止了 IIS,但 wamp 仍然无法工作。在测试 80 中它是空白的。我现在该怎么办?

I've stopped IIS but still wamp is not working. In test 80 it's blank. What shall i do now?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

瑶笙 2024-10-07 21:25:44

以下是使 wampserver 工作的一些方法。

  1. 检查wampserver的图标。
    • 红色 ===>服务无法正常工作。
    • 橙色 ===>不工作。
    • 绿色 ===>我在工作!
  2. 通过单击 wampserver 图标 > 测试是否有其他服务正在使用端口 80阿帕奇>测试端口 80。它将打开命令提示符并显示是否有任何服务正在使用端口 80。另一种方法:单击窗口图标并搜索 cmd 然后按 Enter 键输入

    <前><代码>netstat -ano

    并检查PID 列是否有任何服务正在使用端口 80。最常见的是 Skype 和 IIS 使用端口 80。

  3. 如果 Skype 使用端口 80,只需打开 Skype,单击工具 > 即可。选项>高级>连接并取消选中“使用端口 80 和 443 作为替代”复选框。

  4. 80端口完成后,如果还是不行,点击wampserver>图标阿帕奇> httpd.conf 并更改以下行

    <前><代码>听0.0.0.0:80
    听[::0]:80

    到此

    <前><代码>听0.0.0.0:8080
    听 [::0]:8080

    还有这一行

    服务器名称本地主机:80
    

    到此

    服务器名称本地主机:8080
    

    保存文件并在浏览器中输入http://localhost:8080,通常它应该可以工作。

  5. 当它说时,问题也可能出现

    <块引用>

    VCRUNTIME.dll 丢失

    或者类似的东西。在这种情况下,您缺少 Visual Studio 2012 VC 11 vcredist_x64/86.exe(取决于您使用的 wampserver 版本),而您应该在安装之前阅读警告标志。要修复此问题,请访问 http://www.microsoft.com /en-us/download/details.aspx?id=30679 或您需要使用的任何版本,然后下载。运行程序并单击修复。

  6. 完成所有这些步骤后,单击 wampserver icon > 重新启动 wampserver重新启动所有服务并刷新本地主机。如果您更改为使用端口 8080,请在地址栏中输入 localhost 后输入 :8080,这应该可以工作。

希望这有帮助。

Here are some ways to make wampserver work.

  1. Check the icon of wampserver.
    • RED ===> Service not working.
    • ORANGE ===> Not working.
    • GREEN ===> I'm working!
  2. Test if another service is using port 80 by clicking the wampserver icon > Apache > Test Port 80. It will open your command prompt and display whether or not any service is using port 80. Another way of doing it: click on the icon of window and search cmd then hit enter to type

    netstat -ano
    

    and check in the PID column if any service is using port 80. Most frequently it will be Skype and IIS that will use port 80.

  3. If Skype is using port 80, simply open Skype, click on tool > options > advanced > connections and uncheck the box that says "use port 80 and 443 as alternative".

  4. Once finished with the port 80, if it still doesn't work, click the icon of wampserver > apache > httpd.conf and change the following lines

    Listen 0.0.0.0:80
    Listen [::0]:80
    

    to this

    Listen 0.0.0.0:8080
    Listen [::0]:8080  
    

    and this line

    ServerName localhost:80
    

    to this

    ServerName localhost:8080
    

    Save your file and type in your browser http://localhost:8080 and generally it should work.

  5. The problem might also come when it says

    VCRUNTIME.dll is missing

    or something like that. In this case, you are missing Visual Studio 2012 VC 11 vcredist_x64/86.exe (depending the version of wampserver you're using) when you should have read the warning sign before installing it. To fix it, go to http://www.microsoft.com/en-us/download/details.aspx?id=30679 or whichever version of it you need to use, and download it. Run the program and click on repair.

  6. After all these steps, restart wampserver by clicking wampserver icon > Restart all services and refresh your localhost. If you changed to using port 8080, enter :8080 just after entering localhost in your adress bar and this should work.

Hope this helped.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文