Linux的Apache报错(20014)Internal error: Error retrieving pid file logs/httpd.pid
生活随笔
收集整理的這篇文章主要介紹了
Linux的Apache报错(20014)Internal error: Error retrieving pid file logs/httpd.pid
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
今天在虛擬機(jī)上打開(kāi)apache出現(xiàn)如下錯(cuò)誤:
[root@www.linuxidc.com ~]# service httpd start
(20014)Internal error: Error retrieving pid file logs/httpd.pid
Remove it before continuing if it is corrupted.
其實(shí)這個(gè)錯(cuò)誤就是因?yàn)锳pache目錄下的 logs 子目錄下的 httpd.pid 文件內(nèi)容是空的。這個(gè)文件是記錄進(jìn)程ID的文件。
因?yàn)檫@個(gè)文件是空的,就無(wú)法啟動(dòng)。你隨便寫點(diǎn)數(shù)字進(jìn)去,再啟動(dòng)Apache,就可以成功了。
[root@www.linuxidc.com ~]# echo 1234 > /usr/local/apache2/logs/httpd.pid
[root@www.linuxidc.com ~]# service httpd start
總結(jié)
以上是生活随笔為你收集整理的Linux的Apache报错(20014)Internal error: Error retrieving pid file logs/httpd.pid的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: mbo是什么意思
- 下一篇: 从偏远山区中走出一步一步走向世界 她仅仅