linux系統(tǒng)下Apache服務(wù)啟動時報錯情況處理
2015-11-02 14:06:22
12543
當(dāng)我們在安裝好Apache重啟后,在終端啟動Apache服務(wù)時候出現(xiàn)下面報錯:
錯誤代碼:
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 [失敗]
錯誤原因一:可能存在httpd.conf的配置文件中,找到“ServerName localhost:80”這里,把這段前面的#號刪除。
(#號在配置文件中表示注釋的意思)
錯誤原因二:用戶權(quán)限的問題,查看當(dāng)前是否是root用戶,因為小于1024的端口只能是root占用。
切換至root用戶。或者更改端口如8000.