1.對於下面這種報錯,經常會出現,出現的場景,一般是當我們更新了windows相關的應用,下載一個安裝文件包,影響了系統的80,這時候就會產生經常出現的端口衝突,需要怎麼做呢?
Port 80 in use by "Unable to open process" with PID 4! 10:55:24 [Apache]
Apache WILL NOT start without the configured ports free! 10:55:24 [Apache]
You need to uninstall/disable/reconfigure the blocking application 10:55:24 [Apache]
2.解決方法非常簡單
(1)找到兩文件
httpd.config和httpd.vhost
(2)vhost文件寫虛擬服務器的地址,所以這裏的端口監聽需要和httpd,config中一致
httpd.config中將Listen:80換成其他的較大數字,這裏注意,不要用81或是82,直接用8080或是其他四位數這樣避免修改後再次衝突端口