[root@localhost ~]#/usr/local/nginx/sbin/nginx -s reload
修改php设置后你需要重启php才能生效,另外定期重启php会释放所消耗的内存
kill -SIGINT `cat /usr/local/php/var/run/php-fpm.pid`
[root@localhost ~]# /usr/local/php/sbin/php-fpm
讨论了源码安装nginx后无法使用servicenginxrestart重启的问题,并提供了使用nginx-sreload命令解决的方法。同时介绍了修改php设置后重启php以使更改生效,以及定期重启php释放内存的技巧。
源码安装nginx就面临这样的麻烦,不能使用service nginx restart 来重启nginx,没办法只能重新加载下nginx.
[root@localhost ~]#/usr/local/nginx/sbin/nginx -s reload
修改php设置后你需要重启php才能生效,另外定期重启php会释放所消耗的内存
kill -SIGINT `cat /usr/local/php/var/run/php-fpm.pid`
[root@localhost ~]# /usr/local/php/sbin/php-fpm

被折叠的 条评论
为什么被折叠?