terryc007 发表于 2011-7-22 22:11:14

Reload LNMP ..之后,php-fpm跑不起来nginx也出现问题

reload之后打印:


Reload LNMP...
Reload Nginx configure...
the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
configuration file /usr/local/nginx/conf/nginx.conf test is successful
: invalid PID number "" in "/usr/local/nginx/logs/nginx.pid"
Nginx program is reloding!
SUCCESS! Reloading service MySQL
Reload service php-fpm warning, no pid file found - php-fpm is not running ?


php也不启动成功...
可能出现的问题在哪里,配置不对,还是其他权限不够?
望达人解答!

licess 发表于 2011-7-22 22:45:30

因为nginx和php-fpm都没有启动,reload肯定也就reload不上。

terryc007 发表于 2011-7-22 22:51:38

: invalid PID number "" in "/usr/local/nginx/logs/nginx.pid" 这文件里面保存的是nginx的pid..但是我看了下,是空的?
我的理解是,既然是reload,pid肯定没有,只有stop的时候才用到这个pid文件,但为什么执行reload操作的时候,会报这个错了?

licess 发表于 2011-7-22 23:01:55

那你肯定对nginx还不是很了解,老版nginx里的reload就是通过pid进行的。kill -HUP `cat /usr/local/nginx/logs/nginx.pid`

terryc007 发表于 2011-7-22 23:14:09

是的..我刚接触linux方面的东西...很多东西不清楚...
那再请教下军哥,报: invalid PID number "" in "/usr/local/nginx/logs/nginx.pid"这个错误,是因为文件里面是空的,那该怎么办了?

licess 发表于 2011-7-23 09:01:28

nginx没有启动肯定是空的,启动就行了,启动了才能reload

terryc007 发表于 2011-7-23 16:36:30

:victory:   3q!!
页: [1]
查看完整版本: Reload LNMP ..之后,php-fpm跑不起来nginx也出现问题