Home>Article>Operation and Maintenance> How to turn off php-fpm in linux
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.
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!