PHP-FPM cannot be stopped. Restart automatically after stopping.

problem description

Today, I modified a configuration of php-fpm.conf : daemonize = yes .

then use kill-USR2 "cat / usr/local/var/run/php-fpm.pid" to restart php-fpm.

execute ps-ef | the result of grep php-fpm is as follows:

[27-Sep-2018 09:44:17] NOTICE: Finishing ...
[27-Sep-2018 09:44:17] NOTICE: exiting, bye-bye!
[27-Sep-2018 09:44:17] NOTICE: [pool www] "user" directive is ignored when FPM is not running as root
[27-Sep-2018 09:44:17] NOTICE: [pool www] "user" directive is ignored when FPM is not running as root
[27-Sep-2018 09:44:17] NOTICE: [pool www] "group" directive is ignored when FPM is not running as root
[27-Sep-2018 09:44:17] NOTICE: [pool www] "group" directive is ignored when FPM is not running as root
[27-Sep-2018 09:44:17] NOTICE: fpm is running, pid 941
[27-Sep-2018 09:44:17] NOTICE: ready to handle connections
Jul.16,2021

under ~ / Library/LaunchAgents of Mac, the file of homebrew.mxcl.php.plist is found. This is the system self-boot file of Mac. Delete this file and restart it.


execute manually

launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.php.plist
The

command is fine. If you confirm and restore it, execute

.
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.php.plist 
Menu