Contents

php-fpm-启动、重启、关闭、重载命令

Contents

php-fpm-启动、重启、关闭、重载命令

在CentOS/RHEL 7系统下执行 systemctl start php-fpm # 启动php-fpm systemctl stop php-fpm # 停止php-fpm systemctl reload php-fpm # 重载php-fpm systemctl restart php-fpm # 重启php-fpm

在CentOS/RHEL 6.x等旧版本系统下执行 service php-fpm start # 启动php-fpm service php-fpm stop # 停止php-fpm service php-fpm restart # 重启php-fpm service php-fpm reload # 重载php-fpm

在Ubuntu/Debian系统下执行 service php5-fpm start # 启动 service php5-fpm stop # 停止 service php5-fpm restart # 重启 service php5-fpm reload # 重载

如果系统使用systemd,比如Ubuntu Linux 16.04+ LTS或者Debian Linux 8.x+,可以这样: systemctl start php5-fpm.service # 启动 systemctl stop php5-fpm.service # 停止 systemctl restart php5-fpm.service # 重启 systemctl reload php5-fpm.service # 重载

在Ubuntu/Debian操作php7.3-fpm 执行 service php7.3-fpm start # 启动 service php7.3-fpm stop # 停止 service php7.3-fpm restart # 重启 service php7.3-fpm reload # 重载

如果系统使用systemd,比如Ubuntu Linux 16.04+ LTS或者Debian Linux 8.x+ systemctl start php7.3-fpm.service # 启动 systemctl stop php7.3-fpm.service # 停止 systemctl restart php7.3-fpm.service # 重启 systemctl reload php7.3-fpm.service # 重载

使用Alpine Linux执行 /etc/init.d/php-fpm start # 启动 /etc/init.d/php-fpm stop # 停止 /etc/init.d/php-fpm restart # 重启

使用FreeBSD Unix系统执行 /usr/local/etc/rc.d/php-fpm start # 启动 /usr/local/etc/rc.d/php-fpm stop # 停止 /usr/local/etc/rc.d/php-fpm reload # 重载 /usr/local/etc/rc.d/php-fpm restart # 重启 或者用service命令执行: service php-fpm start # 启动 service php-fpm stop # 停止 service php-fpm restart # 重启 service php-fpm reload # 重载 如果无法执行或者提示没有权限,请在开头加上‘sudo’后执行,例如 sudo systemctl start php7.3-fpm.service