Apache错误:Internal error: Error retrieving pid file logs/httpd.pid发布时间:2016/2/29 12:41:00 阅读次数:

  启动apache时,出现20014错误:
[root@123 ~]# service httpd start
(20014)Internal error: Error retrieving pid file logs/httpd.pid

Remove it before continuing if it is corrupted.


解决方法:其实这个错误就是因为Apache目录下的logs 子目录下的httpd.pid 文件内容是空的。这个文件是记录进程ID的文件。因为这个文件是空的,就无法启动。随便写点数字进去,再启动Apache,就可以成功了。
[root@123 ~]# echo 12345 > /usr/local/apache/logs/httpd.pid
[root@123 ~]# service httpd start