501 25131 1 0 9:31下午 ?? 0:00.37 /usr/local/opt/php/sbin/php-fpm --nodaemonize
501 25136 25131 0 9:31下午 ?? 0:00.00 /usr/local/opt/php/sbin/php-fpm --nodaemonize
501 25137 25131 0 9:31下午 ?? 0:00.00 /usr/local/opt/php/sbin/php-fpm --nodaemonize
501 26377 26220 0 10:32下午 ttys000 0:00.00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn php-fpm
通过
重新启动php-fpm时,我修改了php-fpm.confdaemonize = no
。
kill -USR2 'cat /usr/local/var/run/php-fpm.pid'
然后我发现我无法通过
关闭php-fpmkill -9 25131
我可以通过错误日志看到fpm自动重新启动:
[26-Sep-2018 23:13:43] NOTICE: [pool www] 'user' directive is ignored when FPM is not running as root
[26-Sep-2018 23:13:43] NOTICE: [pool www] 'user' directive is ignored when FPM is not running as root
[26-Sep-2018 23:13:43] NOTICE: [pool www] 'group' directive is ignored when FPM is not running as root
[26-Sep-2018 23:13:43] NOTICE: [pool www] 'group' directive is ignored when FPM is not running as root
[26-Sep-2018 23:13:43] NOTICE: fpm is running, pid 26948
[26-Sep-2018 23:13:43] NOTICE: ready to handle connections
它将以新的PID重新启动,我找不到主进程,也不知道--nodaemonize
是什么意思。
此问题刚刚在我的Macbook上发生。
答案 0 :(得分:1)
在目录~/Library/LaunchAgents
中找到此文件homebrew.mxcl.php.plist
。
删除它并重新启动我的mac,问题已解决。