今天安裝mongodb后發(fā)現(xiàn)apache無(wú)法啟動(dòng)
命令行 services.msc 打開(kāi)服務(wù)
在服務(wù)里啟動(dòng)Apache2a服務(wù),報(bào)錯(cuò)誤碼1
網(wǎng)上查有很多情況都報(bào)的1
可以通過(guò)命令行下 執(zhí)行apache bin 下的 httpd.exe進(jìn)一步了解
AH00548: NameVirtualHost has no effect and will be removed in the next release D:/phpStudy/Apache/conf/extra/httpd-vhosts.conf:34
(OS 10013)以一種訪問(wèn)權(quán)限不允許的方式做了一個(gè)訪問(wèn)套接字的嘗試。 : AH00072: make_sock: could not bind to address [::]:80
(OS 10013)以一種訪問(wèn)權(quán)限不允許的方式做了一個(gè)訪問(wèn)套接字的嘗試。 : 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端口被占用了,我之前也有一次遇到過(guò)80被System占用,后來(lái)通過(guò)修改httpd.conf里的監(jiān)聽(tīng)端口解決
通過(guò)命令行 netstat -ano|findstr 80 查看占用的pid 為4
通過(guò)tasklist 顯示所有進(jìn)程
System 4 Services 0 108 K
果然還是System占用,這次必須解決,通過(guò)查看資料了解到System一般為SQL Server Reporting Services (MSSQLSERVER)這個(gè)服務(wù)
直接去服務(wù)里禁用它,apache成功開(kāi)啟