sh 重启php-fpm

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 重启php-fpm相关的知识,希望对你有一定的参考价值。

Using SysV Init scripts directly:

/etc/init.d/php-fpm restart    # typical
/etc/init.d/php5-fpm restart   # debian-style
/etc/init.d/php7.0-fpm restart # debian-style PHP 7
Using service wrapper script

service php-fpm restart    # typical
service php5-fpm restart   # debian-style
service php7.0-fpm restart # debian-style PHP 7
Using Upstart (e.g. ubuntu):

restart php7.0-fpm         # typical (ubuntu is debian-based) PHP 7
restart php5-fpm           # typical (ubuntu is debian-based)
restart php-fpm            # uncommon
Using systemd (newer servers):

systemctl restart php-fpm.service    # typical
systemctl restart php5-fpm.service   # uncommon
systemctl restart php7.0-fpm.service # uncommon PHP 7

以上是关于sh 重启php-fpm的主要内容,如果未能解决你的问题,请参考以下文章

如何用supervisor守护php-fpm主进程以实现php-fpm的自动重启

docker php-fpm 一直重启问题处理

php-fpm启动,重启,终止操作

nginx服务器,php-fpm重启

php-fpm 启动,重启,终止操作

php 中php-fpm 的重启终止操作命令