$7.49 .com domain with free InstantPage Website Builder$1.99 Web Hosting   捷飞网络官方淘宝店   Godaddy 优惠码
返回列表 发帖
分享到:




[应用&技术] 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

美国VPS、域名代购:http://tu8l.taobao.com

返回列表
Namecheap
Namecheap.com - Cheap domain name registration, renewal and transfers - Free SSL Certificates - Web Hosting
互联网安全