现在的位置: 首页 > 综合 > 正文

Apache错误:(20014)Internal error: Error retrieving pid file logs/httpd.pid

2013年10月17日 ⁄ 综合 ⁄ 共 357字 ⁄ 字号 评论关闭

今天在虚拟机上打开apache出现如下错误:

[root@ShiGuang ~]# 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@ShiGuang ~]# echo 1234 > /usr/local/apache2/logs/httpd.pid

[root@ShiGuang ~]# service httpd start

抱歉!评论已关闭.