新安装了0.7.59,发现了有新的东西:
以前没有-h的参数,今天尝试发现了 \(^o^)/~
重载配置可以使用 -s reload 多方便呀~
以前还得 kill -HUP `cat logs/nginx.pid` 麻烦东西
参考changelog:
原创内容如转载请注明:来自 阿权的书房
[root@aslibra ~]# /Data/apps/nginx/sbin/nginx -h
nginx version: nginx/0.7.59
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: /Data/apps/nginx/)
-c filename : set configuration file (default: conf/nginx.conf)
-g directives : set global directives out of configuration file
nginx version: nginx/0.7.59
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: /Data/apps/nginx/)
-c filename : set configuration file (default: conf/nginx.conf)
-g directives : set global directives out of configuration file
以前没有-h的参数,今天尝试发现了 \(^o^)/~
重载配置可以使用 -s reload 多方便呀~
以前还得 kill -HUP `cat logs/nginx.pid` 麻烦东西
参考changelog:
引用
Changes with nginx 0.7.53 27 Apr 2009
*) Change: now a log set by --error-log-path is created from the very
start-up.
*) Feature: now the start up errors and warnings are outputted to an
error_log and stderr.
*) Feature: the empty --prefix= configure parameter forces nginx to use
a directory where it was run as prefix.
*) Feature: the -p switch.
*) Feature: the -s switch on Unix platforms.
*) Feature: the -? and -h switches.
Thanks to Jerome Loyet.
*) Change: now a log set by --error-log-path is created from the very
start-up.
*) Feature: now the start up errors and warnings are outputted to an
error_log and stderr.
*) Feature: the empty --prefix= configure parameter forces nginx to use
a directory where it was run as prefix.
*) Feature: the -p switch.
*) Feature: the -s switch on Unix platforms.
*) Feature: the -? and -h switches.
Thanks to Jerome Loyet.
原创内容如转载请注明:来自 阿权的书房
收藏本文到网摘
[转]Nginx 监控
Nginx升级笔记
