php 您的 80 端口实际上并未使用

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/33469110/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-25 23:30:30  来源:igfitidea点击:

Your port 80 is not actually used

phpmysqlapachewamp

提问by Teejaygenius

I have been using wamp 2.0 version for about a year. After which I decided to upgrade to a newer version of 2.2 or 2.5. I uninstalled the 2.0 version and copied all my files to another location. After the new version installation apache did not startup. I test the port 80 and it displays "Your port 80 is not actually used". I have tried as many as possible installation and deletion of the wamp folder before installing another version. But after series of test the 2.0 version is still working perfectly when installed again, but I insists on using the newer version, just to get the new features to be used. Any help will be appreciated. I have google searched for over 24 hours now. Fellow programmer please help me. Thanks in advance

我已经使用 wamp 2.0 版本大约一年了。之后我决定升级到更新的 2.2 或 2.5 版本。我卸载了 2.0 版本并将我的所有文件复制到另一个位置。新版本安装apache后没有启动。我测试了端口 80,它显示“您的端口 80 未实际使用”。在安装另一个版本之前,我已经尝试了尽可能多的安装和删除 wamp 文件夹。但是经过一系列的测试,2.0版本再次安装时仍然可以正常工作,但我坚持使用较新的版本,只是为了获得新功能的使用。任何帮助将不胜感激。我现在用谷歌搜索了超过 24 小时。各位程序员请帮帮我。提前致谢

回答by Ashish

You might not be started the MySql Service. So Answer in steps:

您可能没有启动 MySql 服务。所以分步骤回答:

START APACHE

启动 APACHE

  1. Left click on icon -> Apache- > Services -> Install Service
  2. Leftclick on icon -> Apache- > Services -> Start/Resume Service Left
  3. click on icon -> Apache- > Services -> Test Port 80
  1. 左键单击图标 -> Apache-> 服务 -> 安装服务
  2. 左键单击图标 -> Apache-> 服务 -> 左侧启动/恢复服务
  3. 单击图标 -> Apache-> 服务 -> 测试端口 80

(Step 3 will open command prompt "Your port 80 is not actually used" showing in your case. So u have started apache already. If port 80 is used by another program like skype it will appear there too.It will be another TOPIC)

(第 3 步将打开命令提示符“您的端口 80 未实际使用”显示在您的情况下。所以您已经启动了 apache。如果端口 80 被另一个程序(如 Skype)使用,它也会出现在那里。这将是另一个主题

NOW START MYSQL

现在开始 MYSQL

  1. Left click on icon -> MySql- > Services -> Install Service
  2. Leftclick on icon -> MySq- > Services -> Start/Resume Service Left,
  1. 左键单击图标 -> MySql-> 服务 -> 安装服务
  2. 左键单击图标 -> MySq-> 服务 -> 左键启动/恢复服务,

LEFT CLICK ON ICON AND RESTART ALL SERVICE

左键单击图标并重新启动所有服务

回答by Mubin

well, this happened to me as well, so, I searched a bit and found very very nice solution. Now a days I'm using Ampps, give it a try, you'll love it.

好吧,这也发生在我身上,所以,我搜索了一下,找到了非常好的解决方案。现在我使用Ampps 的日子,试一试,你会喜欢的。

PS. I used wamp for 4 years, I was a big fan of wamp, but now I'm in love with Ampps :)

附注。我使用 wamp 4 年了,我是 wamp 的忠实粉丝,但现在我爱上了 Ampps :)

As per Shomzcomment

根据Shomz评论

to prevent Skype from using port 80, Login to Skype, then Click Tools->Options(or just press ctrl+,) Then on the left side, click on Advancedand Choose Connection, then on right side remove check of check box saying

要防止 Skype 使用port 80,请登录 Skype,然后单击Tools->Options(或直接按ctrl+,)然后在左侧,单击Advanced并选择Connection,然后在右侧删除复选框说

Use port 80 and 443 for additional incoming connections.

使用端口 80 和 443 进行额外的传入连接。

enter image description here

在此处输入图片说明

and restart Skype.

并重新启动 Skype。

have a good day.

祝你有美好的一天。

回答by Julian

I know that this is an old question but I had the same problem and the solution was easy at my side.

我知道这是一个老问题,但我遇到了同样的问题,解决方案对我来说很容易。

My server was listening to port 8080. So when I tested port 80 I showed the error the questioner is having. I opened httpd.conf in a text editor. httpd.conf is located at.

我的服务器正在侦听端口 8080。因此,当我测试端口 80 时,我显示了提问者遇到的错误。我在文本编辑器中打开了 httpd.conf。httpd.conf 位于。

wamp\bin\apache\apache2.4.9\conf\httpd.conf

On line 62 or so you need to make sure Apache is listening to port 80. Set the value of that line to:

在第 62 行左右,您需要确保 Apache 正在侦听端口 80。将该行的值设置为:

Listen 80

Listen 80

Save the file, and restart All Services on WAMP.

保存文件,然后重新启动 WAMP 上的所有服务。

Now, its time for a test.

现在,是时候进行测试了。

  • Start task manager
  • Go to Services tab and find wampapache64
  • Remember that PID.
  • Then, go to the commander
  • run the netstat -aocommand (more info https://technet.microsoft.com/nl-nl/library/bb490947.aspx)
  • You should see all Active Connections
  • One of these connections is 0.0.0.0:80and it has a specific PID.
  • Check if that PID matches with the PID wampapache64 is using.
  • Celebrate your victory if they match.
  • 启动任务管理器
  • 转到服务选项卡并找到 wampapache64
  • 记住那个PID。
  • 然后去找指挥官
  • 运行netstat -ao命令(更多信息https://technet.microsoft.com/nl-nl/library/bb490947.aspx
  • 您应该看到所有活动连接
  • 这些连接之一是0.0.0.0:80并且它具有特定的 PID。
  • 检查该 PID 是否与 wampapache64 正在使用的 PID 匹配。
  • 如果他们匹配,庆祝你的胜利。

回答by noushad_chullian

it is too late for answering this question.... i also faced this problem. When my port 80 is never being used, i reinstalled wamp server again. Now it runs fluently

现在回答这个问题太晚了……我也遇到了这个问题。当我的 80 端口从未被使用时,我再次重新安装了 wamp 服务器。现在它运行流畅