知识屋:更实用的电脑技术知识网站
所在位置:首页 > 操作系统 > linux

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

发布时间:2014-09-05 16:33:14作者:知识屋

今天在虚拟机上打开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

摘自 sg131971的学习笔记
(免责声明:文章内容如涉及作品内容、版权和其它问题,请及时与我们联系,我们将在第一时间删除内容,文章内容仅供参考)
收藏
  • 人气文章
  • 最新文章
  • 下载排行榜
  • 热门排行榜