Skip to content

Instantly share code, notes, and snippets.

@JingwenTian
Created February 12, 2014 06:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JingwenTian/8951072 to your computer and use it in GitHub Desktop.
Save JingwenTian/8951072 to your computer and use it in GitHub Desktop.
linux修改php.ini后重新加载配置文件命令
#PHP的一般默认安装目录是:
/usr/local/php/
#我们用php-fpm来进行重新加载配置文件
/usr/local/php/sbin/php-fpm reload
#注:/usr/local/php/sbin/php-fpm还有其他参数,包括:start|stop|quit|restart|reload|logrotate
#使用PHP-FPM来控制PHP-CGI的FastCGI进程
/usr/local/php/sbin/php-fpm {start|stop|quit|restart|reload|logrotate}
  --start #启动php的fastcgi进程
  --stop #强制终止php的fastcgi进程
  --quit #平滑终止php的fastcgi进程
  --restart #重启php的fastcgi进程
  --reload #重新平滑加载php的php.ini
  --logrotate #重新启用log文件
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment