php-fpm得到一个“失败”的消息,但进程开始 – 好吗?

我遇到一个奇怪的问题,当我启动php-fpm时,我收到以下消息:

> /etc/init.d/php-fpm start Starting php-fpm ................................... failed 

但是,当我看着日志文件看起来像一切都很好(我改变了输出debugging)

 Oct 28 21:25:28.434246 [DEBUG] pid 19872, fpm_event_init_main(), line 93: libevent: using epoll Oct 28 21:25:28.434392 [NOTICE] pid 19872, fpm_init(), line 50: fpm is running, pid 19872 Oct 28 21:25:28.435346 [DEBUG] pid 19872, fpm_children_make(), line 403: [pool www] child 19873 started Oct 28 21:25:28.436182 [DEBUG] pid 19872, fpm_children_make(), line 403: [pool www] child 19874 started Oct 28 21:25:28.437047 [DEBUG] pid 19872, fpm_children_make(), line 403: [pool www] child 19875 started Oct 28 21:25:28.437897 [DEBUG] pid 19872, fpm_children_make(), line 403: [pool www] child 19876 started Oct 28 21:25:28.438751 [DEBUG] pid 19872, fpm_children_make(), line 403: [pool www] child 19877 started Oct 28 21:25:28.439637 [DEBUG] pid 19872, fpm_children_make(), line 403: [pool www] child 19878 started Oct 28 21:25:28.440512 [DEBUG] pid 19872, fpm_children_make(), line 403: [pool www] child 19880 started Oct 28 21:25:28.441385 [DEBUG] pid 19872, fpm_children_make(), line 403: [pool www] child 19881 started Oct 28 21:25:28.442252 [DEBUG] pid 19872, fpm_children_make(), line 403: [pool www] child 19882 started Oct 28 21:25:28.443391 [DEBUG] pid 19872, fpm_children_make(), line 403: [pool www] child 19884 started Oct 28 21:25:28.443551 [NOTICE] pid 19872, fpm_event_loop(), line 111: ready to handle connections 

过程存在,似乎是处理好的事情。 为什么它应该给我一个失败的消息的任何理由?

值得一提的解决问题,即使在丹尼尔已经解决了自己的问题,全新的安装PHP-FPM遇到了…..失败的错误。

php-fpm.conf文件有一个pid文件指令,在新安装中被注释掉。 去除 ';' 编写pid文件和​​启动命令应该没有问题find在默认位置的pid文件。