Home >Backend Development >PHP Tutorial >php-fpm start and stop exception handling
This article mainly shares with you php-fpm startup and stop exception handling, hoping to help everyone.
Start php-fpm under centos7, prompt:
service php-fpm start Starting php-fpm [08-Oct-2016 20:32:54] ERROR: An another FPM instance seems to already listen on /tmp/php-fcgi.sock [08-Oct-2016 20:32:54] ERROR: FPM initialization failed.
View The process or the log file can see that php-fpm has been running normally
service php-fpm stop Gracefully shutting down php-fpm warning,no pid file found – php-fpm is not running?
View the process and you can see that the php-fpm process has not been closed
Cause of the problem: The pid value settings in the php-fpm.conf file and the /etc/init.d/php-fpm file are inconsistent.
Related recommendations:
php configuration php-fpm startup parameters and configuration details_PHP Tutorial
php-fpm startup script in LNMP environment
The above is the detailed content of php-fpm start and stop exception handling. For more information, please follow other related articles on the PHP Chinese website!