(20014)Internal error: 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]# 

你可能感兴趣的:((20014)Internal error: AH00058: Error retrieving pid file logs/httpd.pid)