命令 | 英文 | 中文 |
---|---|---|
-?,-h | this help | 帮助 |
-v | show version and exit | 显示版本并退出 |
-V | show version and configure options then exit | 显示版本和配置选项,然后退出 |
-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 | 向主进程发送信号:stop:停止、quit:退出、reopen:重新打开、reload:重新加载 |
-p prefix | set prefix path (default: NONE) | 设置前缀路径(默认值:无) |
-c filename | set configuration file (default: conf/nginx.conf) | 设置配置文件(默认值:conf/nginx.conf文件) |
-g directives | set global directives out of configuration file | 从配置文件中设置全局指令 |
nginx [-?hvVtq] [-s signal] [-c filename] [-p prefix] [-g directives]