Apache错误:(20014)Internal error: Error retrieving pid file logs/httpd.pid
今天突然发现网站打不开了登录服务器后重启Apache出现如下错误:
service httpd restart
restart apache... (20014)Internal error: AH00058: Error retrieving pid file logs/httpd.pid
AH00059: Remove it before continuing if it is corrupted.
failed
经过查询,其实这个错误就是因为Apache目录下的 logs 子目录下的 httpd.pid 文件内容是空的。
这个文件是记录进程ID的文件。因为这个文件是空的,就无法启动,实在是超雷人。
你随便写点数字进去,再启动Apache,就可以成功了。
例如:
echo 1234 > /usr/local/apache/logs/httpd.pid
再次重启Apache服务器就可以了
service httpd start
页:
[1]