Home 类库下载 PHP类库 Restart and terminate operation commands of php-fpm in php 5.4

Restart and terminate operation commands of php-fpm in php 5.4

Oct 14, 2016 am 10:08 AM

Please indicate the source when reprinting: Restart and terminate the operation command of php-fpm in php 5.4

The restart and terminate operation command of php-fpm in php 5.4:

View the php running directory command: which php
/usr/bin /php

Check the number of php-fpm processes:
ps aux | grep -c php-fpm

Check the 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 php-fpm .conf configuration file, check the pid configuration path (not the installation path), and then change the corresponding places 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 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 wrong

which php
/usr/bin/php

Please note when reprinting Source: Restart and terminate operation commands of php-fpm in php 5.4


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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Two Point Museum: All Exhibits And Where To Find Them
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)