Home  >  Article  >  Backend Development  >  How to start and stop the php process?

How to start and stop the php process?

尚
Original
2020-04-25 10:13:234373browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn