Created
February 12, 2014 06:52
-
-
Save JingwenTian/8951072 to your computer and use it in GitHub Desktop.
linux修改php.ini后重新加载配置文件命令
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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