今天安裝mongodb后發(fā)現(xiàn)apache無法啟動(dòng)
命令行 services.msc 打開服務(wù)
在服務(wù)里啟動(dòng)Apache2a服務(wù),報(bào)錯(cuò)誤碼1
網(wǎng)上查有很多情況都報(bào)的1
可以通過命令行下 執(zhí)行apache bin 下的 httpd.exe進(jìn)一步了解
1
2
3
4
5
|
AH00548: NameVirtualHost has no effect and will be removed in the next release D: /phpStudy/Apache/conf/extra/httpd-vhosts .conf:34 (OS 10013)以一種訪問權(quán)限不允許的方式做了一個(gè)訪問套接字的嘗試。 : AH00072: make_sock: could not bind to address [::]:80 (OS 10013)以一種訪問權(quán)限不允許的方式做了一個(gè)訪問套接字的嘗試。 : AH00072: make_sock: could not bind to address 0.0.0.0:80 AH00451: no listening sockets available, shutting down AH00015: Unable to open logs |
看到這里估計(jì)是80端口被占用了,我之前也有一次遇到過80被System占用,后來通過修改httpd.conf里的監(jiān)聽端口解決
通過命令行 netstat -ano|findstr 80
查看占用的pid 為4
通過tasklist 顯示所有進(jìn)程
1
|
System 4 Services 0 108 K |
果然還是System占用,這次必須解決,通過查看資料了解到System一般為SQL Server Reporting Services (MSSQLSERVER)這個(gè)服務(wù)
直接去服務(wù)里禁用它,apache成功開啟
總結(jié)
以上所述是小編給大家介紹的Apache 解決80端口占用問題 ,希望對(duì)大家有所幫助,如果大家有任何疑問歡迎給我留言,小編會(huì)及時(shí)回復(fù)大家的!
原文鏈接:https://www.cnblogs.com/xueTP/p/8570678.html