[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
网友评论