gpt4 book ai didi

fpm - PHP-FPM无法关闭

转载 作者:行者123 更新时间:2023-12-05 09:15:26 29 4
gpt4 key购买 nike

  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上出现了这个问题。

最佳答案

在目录 ~/Library/LaunchAgents 中找到这个文件 homebrew.mxcl.php.plist

删除它并重新启动我的mac,问题解决了。

关于fpm - PHP-FPM无法关闭,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52520433/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com