Home  >  Article  >  Operation and Maintenance  >  How to turn off php-fpm in linux

How to turn off php-fpm in linux

王林
王林Original
2020-08-28 13:44:584157browse

How to close php-fpm in Linux: First execute the [whereis php-fpm] command to view the address; then execute [kill -INT `cat /usr/local/php5/var/run/php-fpm.pid `] command can be used to close php-fpm.

How to turn off php-fpm in linux

The specific method is as follows:

(Recommended video tutorial: php video tutorial)

View The address of php-fpm

whereis php-fpm

Start php-fpm

/usr/local/php5/sbin/php-fpm     #  /usr/local/php5/为php-fpm的安装地址
/usr/local/php-5.6.3/sbin/php-fpm -R  # 如果报错显示不能用root用户启动,则可以考虑使用 -R命令

(Related recommendations: php training)

Check whether the startup is successful:

netstat -lnt | grep 9000
tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN

Or use the following command to check whether port 9000 is occupied by php-fpm:

netstat -tunpl | grep 9000
tcp    0 0 127.0.0.1:9000    0.0.0.0:*    LISTEN    2124/php-fpm

php-fpm Close:

kill -INT `cat /usr/local/php5/var/run/php-fpm.pid`

or:

pkill php-fpm

The above is the detailed content of How to turn off php-fpm in linux. 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