打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
Nginx 新的重载方式 (nginx

Nginx 新的重载方式 (nginx -s reload)

2010年12月13日 12:01 | 作者:

Nginx 从 0.7.53 版本之后新增了一些命令行参数:-s

以前都是用kill -HUP `cat /usr/local/nginx/logs/nginx.pid` 方法来重新加载配置,现在只需要用 /usr/local/nginx/sbin/nginx -s reload 命令即可。

-s参数包含四个命令分别是 stop/quit/reopen/reload

vpser:~# /usr/local/nginx/sbin/nginx -h
nginx version: nginx/0.7.67
Usage: nginx [-?hvVt] [-s signal] [-c filename] [-p prefix] [-g directives]
Options:
-?,-h         : this help
-v            : show version and exit
-V            : show version and configure options then exit
-t            : test configuration and exit
-s signal     : send signal to a master process: stop, quit, reopen, reload
-p prefix     : set prefix path (default: /usr/local/nginx/)
-c filename   : set configuration file (default: conf/nginx.conf)
-g directives : set global directives out of configuration file
vpser:~#
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
directory index of “/usr/share/nginx/html/” is forbidden
mac下nginx的安装和配置
Beginner’s Guide
CentOS 7 Nginx 控制脚本「更新」
Linux下的Nginx安装(开机自启动)
服务器上的Nginx和PHP都是源码编译安装的(转)--Nginx和PHP启动脚本
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服