Nginx

你如何重新啟動php-fpm?

  • September 23, 2019

我需要重新載入我的 php.ini 並且幫助對話框中沒有關於重新啟動它的內容。

注意sudo如果不是root,

  • 直接使用 SysV Init 腳本:
/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
  • 使用服務包裝腳本
service php-fpm restart    # typical
service php5-fpm restart   # debian-style
service php7.0-fpm restart # debian-style PHP 7
  • 使用 Upstart(例如 ubuntu):
restart php7.0-fpm         # typical (ubuntu is debian-based) PHP 7
restart php5-fpm           # typical (ubuntu is debian-based)
restart php-fpm            # uncommon
  • 使用 systemd(較新的伺服器):
systemctl restart php-fpm.service    # typical
systemctl restart php5-fpm.service   # uncommon
systemctl restart php7.0-fpm.service # uncommon PHP 7

或者您系統上的任何等價物。

引用自:https://serverfault.com/questions/189940