启动xampp出错,Port 80 in use by "Unable to open process" with PID 4!

时间:2023-03-10 00:48:25
启动xampp出错,Port 80 in use by "Unable to open process" with PID 4!

启动xampp出错,Port 80 in use by "Unable to open process" with PID 4!

环境:windows10

启动xampp出错,Port 80 in use by "Unable to open process" with PID 4!

80端口被PID为4的应用占用。

参考文章:win10端口被占用如何查看

解决方法:

参考: XAMPP - Port 80 in use by “Unable to open process” with PID 4! 12

更改Apache所要用的端口

Step1: config-->Apache(httpd.conf)

启动xampp出错,Port 80 in use by "Unable to open process" with PID 4!

Step2: 修改httpd.conf,Listen 80 改为 Listen

#Listen 12.34.56.78:
Listen

ServerName localhost:80  改为  ServerName localhost:8080

Step3: config->Service and Port Settings ->Apache -> Main Port ->改为8080

启动xampp出错,Port 80 in use by "Unable to open process" with PID 4!