天天看點

啟動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 8080

#Listen 12.34.56.78:8080

Listen 8080

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!