Linux啓動apache失敗怎麼辦
時間 2020-02-12
標籤
linux
啓動
apache
失敗
怎麼辦
-
(20014)Internal error (specific information not available): AH00058: Error retrieving pid file logs/httpd.pid
-
[root@localhost conf]# /usr/local/apache2/bin/apachectl -k restart
-
(20014)Internal error: AH00058: Error retrieving pid file logs/httpd.pid
-
-
AH00059: Remove it before continuing if it is corrupted.
-
-
-
因爲不正當關閉服務形成的問題,刪除 httpd.pid
-
-
-
[root@localhost logs]# /usr/local/apache2/bin/apachectl -k restart
-
(20014)Internal error: AH00058: Error retrieving pid file logs/httpd.pid
-
AH00059: Remove it before continuing if it is corrupted.
-
[root@localhost logs]# ls
-
access_log error_log httpd.pid
-
[root@localhost logs]# rm -f httpd.pid
-
[root@localhost logs]# /usr/local/apache2/bin/apachectl -k restart
-
httpd not running, trying to start
-
[root@localhost logs]# netstat -ant
-
Active Internet connections (servers and established)
-
Proto Recv-Q Send-Q Local Address Foreign Address State
-
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
-
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN
-
tcp 0 48 192.168.5.41:22 192.168.5.61:50394 ESTABLISHED
-
tcp 0 0 :::80 :::* LISTEN
-
tcp 0 0 :::22 :::* LISTEN
-
[root@localhost logs]#