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

How to turn off php-fpm in linux

王林
Release: 2020-08-29 15:35:12
Original
4280 people have browsed it

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
Copy after login

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命令
Copy after login

(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
Copy after login

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
Copy after login

php-fpm Close:

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

or:

pkill php-fpm
Copy after login

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!

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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template