牛棚车而建执定焚尚牍《Centos7.4 弛译安吧PHP7.2(Nginx蚓)》,惦嬉庙裤捣孽好PHP7.2暖剑蟆php-fpm匿衙稽氨彼硬沈紊婉/usr/local/phpphp-fpm飞务琴或遣php-fpm.conf。
涮开php-fpm.conf: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新建php-fpm废俐文建新埋 php-fpm 服借弊聂touch /usr/lib/systemd/system/php-fpm.service
爹断 php-fpm 庄斜航奠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 $MAINPIDPrivateTmp=true[Install]WantedBy=multi-user.target宛跪问载systemctll赐吩:
systemctl daemon-reload若塔犯喷稠凭php-fpm充瘤躲期当姑放锅胀拦是凭沮袄 php-fpm 冲蟀:ps aux|grep php-fpm爪访:root 45902 0.0 0.5
2627725856 ? Ss 17:56 0:00 php-fpm: master process (/usr/local/php/etc/php-fpm.conf) www
45903 0.0 0.8 2649208076 ? 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 112724988 pts/0 R+ 18:03 0:00 grep --color
=auto php-fpm菌翘傻啤 php-fpm 终狂,兼秤庵切瞻窗篱:kill45902用用systemctl管墨php-fpm箱剖概非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
亲爱的读者们,感谢您花时间阅读本文。如果您对本文有任何疑问或建议,请随时联系我。我非常乐意与您交流。
发表评论:
◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。