您的位置:首页 > 运维架构 > Nginx

php/nginx重启命令

2011-12-31 16:47 330 查看
源码安装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

ref:nginx 启动停止 php 5.3.6 中 php-fpm 启动 关闭 配置 成服务启动
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  nginx php service kill