Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of shutting down php-fpm by linux

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article will explain in detail about linux php-fpm shutdown method, Xiaobian feel quite practical, so share to everyone as a reference, I hope you can read this article after harvest.

Linux to close php-fpm method: first execute the [whereis php-fpm] command to view the address; then execute the [kill -INT `cat /usr/local/php5/var/run/php-fpm.pid`] command to close php-fpm.

The specific methods are as follows:

(Recommended video tutorial: php video tutorial)

View php-fpm's address

whereis php-fpm

start PHP-FPM

/usr/local/php5/sbin/php-fpm # /usr/local/php5/php-fpm installation address/usr/local/php-5.6.3/sbin/php-fpm -R #If the error indicates that you cannot boot with root, consider using the-R command

Check if the startup is successful:

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

Or use the following command to see if port 9000 is occupied by php-fpm:

netstat -tunpl | grep 9000tcp 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 about linux php-fpm method to share here, I hope the above content can be of some help to everyone, you can learn more knowledge. If you think the article is good, you can share it so that more people can see it.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report