apache启动时候报错:
(20014)Internal error: AH00058: Error retrieving pid file logs/httpd.pid
AH00059: Remove it before continuing if it is corrupted.
解决方法:
由于不正当关闭服务造成的问题,删除 httpd.pid
[[email protected] 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.
[[email protected] logs]# ls
access_log error_log httpd.pid
[[email protected] logs]# rm -f httpd.pid
[[email protected] logs]#/usr/local/apache2/bin/apachectl -k restart
restart apache... httpd not running, trying to start
done
[[email protected] logs]#