nginux 配置检查
/usr/local/nginx/sbin/nginx -t -c /usr/local/nginx/conf/nginx.conf
热重起nginx
kill -HUP `cat /usr/local/nginx/logs/nginx.pid`
重新打开日志文件
kill -USR1 `cat /usr/local/nginx/logs/nginx.pid`
平滑升级可执行程度
kill -USR2 `cat /usr/local/nginx/logs/nginx.pid`
等现有请求释放后关闭
kill -QUIT `cat /usr/local/nginx/logs/nginx.pid`
强行关闭 不建议使用:
kill -9 `cat /usr/local/nginx/logs/nginx.pid`
nginux 配置重载
/usr/local/nginx/sbin/nginx -s reload
阅读(565) | 评论(0) | 转发(0) |