Restart and terminate operation commands of php-fpm in php5.4

Restart and terminate operation commands of php-fpm in php 5.4: View the php running directory command: which php /usr/bin/php View the number of php-fpm processes: ps aux | grep -c php-fpm View running memory /usr/bin/php -i|grep mem Restart php-fpm /etc/init.d/php-fpm restart You can see the php related configuration in the phpinfo() output. Loaded Configuration File /etc/php.ini ============================== First, find the php-fpm.conf configuration file, check the pid configuration path (not the installation path), and then change the corresponding places below to execute it normally. [root@DO-SG-H1 ~]# ps aux | grep php-fpm root 11799 0.0 0.0 103248 880 pts/0 S+ 13:51 0:00 grep –color php-fpm root 11973 0.0 0.0 417748 964 ? Ss Jun01 0:20 php-fpm: master process (/etc/php-fpm.conf) cat /etc/php-fpm.conf see pid = /var/run/php-fpm/php-fpm.pid php-fpm start: /usr/local/php/sbin/php-fpm php-fpm close: kill -INT `cat /var/run/php-fpm/php-fpm.pid` php-fpm restart: kill -USR2 `cat /var/run/php-fpm/php-fpm.pid` View the number of php-fpm processes: ps aux | grep -c php-fpm ============================= [root@DO-SG-H1 ~]# find / -name ‘php-fpm’ -type d /var/log/php-fpm /var/run/php-fpm The path found using this find command is incorrect. which php /usr/bin/php

Restart and terminate operation commands of php-fpm in php5.4

Restart and terminate operation commands of php-fpm in php 5.4 PHP-FPM uses signal control: The master process can understand the following signals INT, TERM terminate immediatelyQUIT gracefully terminatesUSR1 reopens the log fileUSR2 gracefully reloads all worker processes and reloads configuration and binary modules Example: php-fpm startup: /usr/local/php/sbin/php-fpm php-fpm shutdown:kill -INT `cat / usr/local/php/var/run/php-fpm.pid`php-fpm Restart:kill -USR2 `cat /usr/local/php/var/run/php-fpm.pid ` View the number of php-fpm processes: ps aux | grep -c php-fpm

Restart and terminate operation commands of php-fpm in php5.4

The restart and termination operation commands of php-fpm in php 5.4: View the php running directory command: which php/usr/bin/php View the php-fpm process Number:ps aux | grep -c php-fpm View running memory/usr/bin/php -i|grep mem Restart php- fpm/etc/init.d/php-fpm restart You can see the PHP related configuration in the output of phpinfo(). Loaded Configuration File /etc/php.ini ================================ First find the php-fpm.conf configuration file, check the pid configuration path (not the installation path), and then change the corresponding places below to execute it normally. [root@DO-SG-H1 ~]# ps aux | grep php-fpm root 11799 0.0 0.0 103248 880 pts/0 S+ 13:51 0:00 grep –color php -fpmroot 11973 0.0 0.0 417748 964 ? Ss Jun01 0:20 php-fpm: master process (/etc/php-fpm.conf) cat /etc/php-fpm.conf Seepid = /var/run/php-fpm/php-fpm.pid php-fpm Start:/usr/local/php/sbin /php-fpmphp-fpm shutdown:kill -INT `cat /var/run/php-fpm/php-fpm.pid`php-fpm restart: kill -USR2 `cat /var/run/php-fpm/php-fpm.pid` View the number of php-fpm processes:ps aux | grep -c php-fpm ============================== [root@DO-SG-H1 ~] # find / -name 'php-fpm' -type d/var/log/php-fpm/var/run/php-fpm Use The path found by this find command is incorrect which php/usr/bin/php

Restart and terminate operation commands of php-fpm in php5.4

Restart and terminate operation commands of php-fpm in php 5.4: View the php running directory command: which php /usr/bin/php View the number of php-fpm processes: ps aux | grep -c php-fpm View running memory /usr/bin/php -i | grep mem restart php-fpm /etc/init.d/php-fpm restart In the phpinfo() output, you can see the PHP related configuration. Loaded Configuration File /etc/php.ini ================================ First, find the php-fpm.conf configuration file, check the configuration path of pid (not the installation path), and then change the corresponding place below to execute normally. [root@DO-SG-H1 ~]# ps aux | grep php-fpm root 11799 0.0 0.0 103248 880 pts/0 S+ 13:51 0:00 grep –color php-fpm root 11973 0.0 0.0 417748 964 ? Ss Jun01 0:20 php-fpm: master process (/etc/php-fpm.conf) cat /etc/php-fpm.conf see pid = /var/run/php-fpm/php-fpm.pid php-fpm start: /usr/local/php/sbin/php-fpm php-fpm off: kill -INT `cat /var/run/php-fpm/php-fpm.pid` php-fpm restart: kill -USR2 `cat /var/run/php-fpm/php-fpm.pid` View the number of php-fpm processes: ps aux | grep -c php-fpm =============================== [root@DO-SG-H1 ~]# find / -name ‘php-fpm’ -type d /var/log/php-fpm /var/run/php-fpm The path found by this find command is wrong which php /usr/bin/php

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索