美文网首页
nginx-参数

nginx-参数

作者: linux_龍 | 来源:发表于2019-08-07 11:13 被阅读0次
[root@web01 ~]# nginx -h
nginx version: nginx/1.16.0
Usage: nginx [-?hvVtTq] [-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
测试配置文件并退出

  -T            : test configuration, dump it and exit
测试配置文件,保存全部配置信息并退出

  -q            : suppress non-error messages during configuration testing
在配置测试时,抑制正确信息输出

  -s signal     : send signal to a master process: stop, quit, reopen, reload
信号 停止程序

  -p prefix     : set prefix path (default: /etc/nginx/)
设置加载配置文件路径 nginx.conf

 -c filename   : set configuration file (default: /etc/nginx/nginx.conf)
设置加载指定配置文件
-g directives : set global directives out of configuration file

相关文章

网友评论

      本文标题:nginx-参数

      本文链接:https://www.haomeiwen.com/subject/vjjmdctx.html