vim /usr/local/php/etc/php-fpm.conf ; Pid file
; Note: the default prefix is /usr/local/php/var
; Default Value: none
pid = /var/run/php-fpm.pid touch /usr/lib/systemd/system/php-fpm.service vim /usr/lib/systemd/system/php-fpm.service [Unit]
Description=The PHP FastCGI Process Manager
After=syslog.target network.target
[Service]
Type=forking
PIDFile=/var/run/php-fpm.pid
ExecStart=/usr/local/php/sbin/php-fpm
ExecReload=/bin/kill -USR2 $MAINPID
PrivateTmp=true
[Install]
WantedBy=multi-user.target systemctl daemon-reload ps aux|grep php-fpm root 45902 0.0 0.5 262772 5856 ? Ss 17:56 0:00 php-fpm: master process (/usr/local/php/etc/php-fpm.conf)
www 45903 0.0 0.8 264920 8076 ? S 17:56 0:00 php-fpm: pool www
www 45904 0.0 0.8 264920 8076 ? S 17:56 0:00 php-fpm: pool www
root 45947 0.0 0.0 112724 988 pts/0 R+ 18:03 0:00 grep --color=auto php-fpm kill 45902 systemctl start php-fpm systemctl status php-fpm systemctl stop php-fpm systemctl restart php-fpm systemctl reload php-fpm systemctl enable php-fpm systemctl didable php-fpm