- 帖子
- 212
- 主题
- 189
- 精华
- 0
- 积分
- 1452
- 贡献
- 1134
- 激情
- 1349
- 阅读权限
- 100
- 最后登录
- 2018-6-13
|
[应用&技术] Apache错误:(20014)Internal error: Error retrieving pid file logs/httpd.pid
今天在vps上添加了一个site config ,重启apache报错
7 K, Y7 _' _; \, b错误如下:6 P. x5 L0 U6 a
8 b+ h# I. I& ^) H) @, k[root@root ~]# service httpd start& f3 Y. z& D) k& S! u% E3 a* W
(20014)Internal error: Error retrieving pid file logs/httpd.pid
2 u' P- ^/ i$ O/ } `Remove it before continuing if it is corrupted.2 _7 v9 g1 W7 s6 t( [
' q; ]3 e9 q. R x7 |8 d4 H2 O) L
其实这个错误就是因为Apache目录下的 logs 子目录下的 httpd.pid 文件内容是空的。这个文件是记录进程ID的文件。因为这个文件是空的,就无法启动,实在是超雷人。你随便写点数字进去,再启动Apache,就可以成功了。& a( m1 T; C3 d- ^
[root@root ~]# echo 1234 > /usr/local/apache/logs/httpd.pid B. F- S; K E
[root@root ~]# service httpd start) _: b. H& B" P2 n
|
|