Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Linux 系統教學 >> Linux 教學

Linux 修改 php.ini 後重新載入配置指令

編輯:Linux 教學

環境說明

以 CentOS 為例。PHP 預設安裝路徑通常為 /usr/local/php/。

使用 PHP-FPM 重新載入

/usr/local/php/sbin/php-fpm reload

php-fpm 支援參數:

start | stop | quit | restart | reload | logrotate
  • start:啟動 FastCGI 進程
  • stop:強制終止
  • quit:平滑終止
  • restart:重啟
  • reload:平滑重新載入 php.ini
  • logrotate:重新開啟日誌檔
提示:許多情況(舊版本、無 PHP-FPM)直接重啟 Web 伺服器即可,如重啟 Apache、IIS、Nginx。
Copyright © Windows教程網 All Rights Reserved