Home Operation and Maintenance CentOS How to turn off php-fpm under centos

How to turn off php-fpm under centos

Apr 24, 2020 pm 03:56 PM
centos php-fpm

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!

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

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to input Chinese in centos How to input Chinese in centos Apr 07, 2024 pm 08:21 PM

How to input Chinese in centos

How to read USB disk files in centos7 How to read USB disk files in centos7 Apr 07, 2024 pm 08:18 PM

How to read USB disk files in centos7

How to enter root permissions in centos7 How to enter root permissions in centos7 Apr 02, 2024 pm 08:57 PM

How to enter root permissions in centos7

SCP usage tips-recursively exclude files SCP usage tips-recursively exclude files Apr 22, 2024 am 09:04 AM

SCP usage tips-recursively exclude files

What to do if you forget your password to log in to centos What to do if you forget your password to log in to centos Apr 07, 2024 pm 07:33 PM

What to do if you forget your password to log in to centos

What should I do if I forget my centos username and password? What should I do if I forget my centos username and password? Apr 02, 2024 pm 08:54 PM

What should I do if I forget my centos username and password?

How to enable root permissions in centos7 How to enable root permissions in centos7 Apr 07, 2024 pm 08:03 PM

How to enable root permissions in centos7

What should I do if I forget my centos7 password? What should I do if I forget my centos7 password? Apr 02, 2024 pm 08:51 PM

What should I do if I forget my centos7 password?

See all articles