linux系統(tǒng)下Apache服務(wù)啟動(dòng)時(shí)報(bào)錯(cuò)情況處理
2015-11-02 14:06:22
10459
當(dāng)我們?cè)诎惭b好Apache重啟后,在終端啟動(dòng)Apache服務(wù)時(shí)候出現(xiàn)下面報(bào)錯(cuò):
錯(cuò)誤代碼:
httpd:httpd:Could not reliably determine the servers fully qualified domain name, using localhost.localdomain for ServerName
(13)Permission denied: make_sock; could not bind to address [::]:80
(13)Permission denied: make_sock; could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs [失敗]
錯(cuò)誤原因一:可能存在httpd.conf的配置文件中,找到“ServerName localhost:80”這里,把這段前面的#號(hào)刪除。
(#號(hào)在配置文件中表示注釋的意思)
錯(cuò)誤原因二:用戶權(quán)限的問題,查看當(dāng)前是否是root用戶,因?yàn)樾∮?024的端口只能是root占用。
切換至root用戶?;蛘吒亩丝谌?000.