XAMPP - 端口 80 正在被...使用,尽管我将端口更改为 8080

XAMPP - Port 80 in use by... though I cahnged the port to 8080

我已经更改了其他线程上发布的端口 httpd-ssl.conf: Listen 8080, ServerName localhost:8080

也编辑了 httpd-ssl.conf: Listen 4433, <VirtualHost _default_:4433> ,ServerName www.example.com:4433

我不明白是因为 Apache 正在启动,但只有在这些错误消息之后... 只是想知道这样放置是否可以,以及可能导致问题的原因。

[Apache] Problem detected!
[Apache] Port 80 in use by "Unable to open process" with PID 4!
[Apache] Apache WILL NOT start without the configured ports free!
[Apache] You need to uninstall/disable/reconfigure the blocking application
[Apache] or reconfigure Apache and the Control Panel to listen on a different port
[Apache] Attempting to start Apache app...
[Apache] Status change detected: running

ScreenShot

您可以通过打开 cmd 并输入

来检查哪些端口正在使用
netstat -all

但很可能端口 8080 正在使用中。

只需将端口更改为其他端口即可,您无需更改任何其他设置。

我弄清楚是什么原因造成的。是IIS。 要修复它 - 打开 "run" (Winkey + R) 写入 services.msc,然后搜索 World Wide Web Publishing Service 并将其设置为手动。如果不需要,可以到Control Panel>Programs and Features>Turn Windows features on or off,取消勾选"Internet Information Services"点击确定,需要重启。 我相信对于某些人来说,编辑 XAMPP httpd.conf 并将端口设置为 8080 或任何可用的端口就足够了。

更新:似乎不是 IIS!您甚至不需要将 IIS 更改为手动启动。除了 httpd.conf 我们还需要配置主要端口。打开 XAMPP 单击配置(带有扳手图标的那个)> 服务和端口设置> 更改 "main Port" 和 "SSL Port" 例如 8080、4433 单击 Save 然后你走 :) XAMPP v.3.2.2