Home > Article > Backend Development > How to start and stop the php process?
You can use php-fpm to start and stop the PHP process in PHP.
PHP-FPM provides a better PHP process management method, which can effectively control memory and processes, and can smoothly reload PHP configuration. It has more advantages than spawn-fcgi.
Put the –enable-fpm parameter in ./configure to enable PHP-FPM.
Use PHP-FPM to control the FastCGI process of PHP-CGI:
/usr/local/php/sbin/php-fpm{start|stop|quit|restart|reload|logrotate}
--start starts the fastcgi process of php
--stop forcibly terminates the fastcgi process of php
--quit smoothly terminates the fastcgi process of php
--restart restarts the fastcgi process of php
--reload smoothly reloads the php.ini of php
--logrotate Re-enable the log file
For more related knowledge, please pay attention to PHP Chinese website! !
The above is the detailed content of How to start and stop the php process?. For more information, please follow other related articles on the PHP Chinese website!