How to turn off php-fpm under centos

王林
Release: 2020-05-08 16:58:07
Original
3130 people have browsed it

How to turn off php-fpm under centos

How to close php-fpm under centos:

kill -SIGINT `cat /usr/local/php/var/run/php-fpm.pid`
Copy after login

(Video tutorial recommendation:linux video tutorial)

Extension Knowledge:

Since php5.3.3, php source code includes php-fpm. There is no need to install php-fpm through a patch separately. When installing the source code, directly add the parameter –enable-fpm in configure. That’s it.

So the way to start, shut down and reload php-fpm is different from before, you need to use signal control:

For example:

php-fpm restart

kill -SIGUSR2 `cat /usr/local/php/var/run/php-fpm.pid`
Copy after login

Note: /usr/local/php/var/run/php-fpm.pid refers to the file that stores the master process number. This is the default address, which can be modified in the configuration. In addition, you can use the ps command to find the master process. number, and then use the kill signal process number.

Recommended related tutorials:centos tutorial

The above is the detailed content of How to turn off php-fpm under centos. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!