nginx相关参数说明

来源:互联网 发布:淘宝怎么显示多个客服 编辑:程序博客网 时间:2024/05/21 09:25
[root@mode extra]# /application/nginx/sbin/nginx -h
nginx version: nginx/1.2.1
Usage: nginx [-?hvVtq] [-s signal] [-c filename] [-p prefix] [-g directives]


Options:
  -?,-h         : this help
  -v            : show version and exit//显示出nginx的版本号
  -V            : show version and configure options then exit//显示出nginx版本号和配置选项后退出
  -t            : test configuration and exit//测试配置文件是否正确,在运行时重新加载配置的时候,这个命令非常重要,用来检测所修改的配置文件时候正确
  -q            : suppress non-error messages during configuration testing
  -s signal     : send signal to a master process: stop, quit, reopen, reload//发送一个信号给master,这里的reload参数很重要,是优雅重启nginx参数。类似apache的graceful
  -p prefix     : set prefix path (default: /application/nginx-1.2.1/)
  -c filename   : set configuration file (default: conf/nginx.conf)//使用指定的配置文件,而不是conf/nginx.conf,一个实例一个配置文件,启动哪个实例,使用哪个配置文件
  -g directives : set global directives out of configuration file
0 0
原创粉丝点击