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.conf daemonize = no,当重启php-fpm时
kill -USR2 'cat /usr/local/var/run/php-fpm.pid' 然后我发现我无法通过以下方式关闭php-fpm
kill -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上发生了。
发布于 2018-09-27 10:58:10
在目录~/Library/LaunchAgents中找到文件homebrew.mxcl.php.plist。
删除它并重新启动我的mac,问题就解决了。
https://stackoverflow.com/questions/52520433
复制相似问题