CMD nginx 1.7.9 命令详解


HTTP 反向代理。

Note: 不支持非 ASCII 字符路径。

另请参阅: Nginx 1.15.6 Documentation

基本语法     Basic Usage     Detailed Usage


nginx [-?hvVtq] [-s signal] [-c filename] [-p prefix] [-g directives]
			

选项参数

参数 EN 解释 中文翻译 Remark
-?,-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 把信号发送给主进程:停止 离开 重新打开 重装
-p prefix set prefix path (default: NONE) 设置前缀路径 (默认:NONE)
-c filename set configuration file (default: conf/nginx.conf) 设置配置文件 (默认:conf/nginx.conf)
-g directives set global directives out of configuration file 设置配置文件外的全局指令

Basic Usage

Function 命令 文字解释 示例 示例解释
帮助 nginx -? 展示帮助信息
nginx -h
Version nginx -v 展示版本信息
nginx -V 展示版本信息 配置选项

Detailed Usage


本机 http://127.0.0.1/index.html
			

 

目录结构


nginx/runtime/nginx/nginx.exe
                  ├ conf/nginx.conf    配置文件
                  ├ logs/access.log    日志目录
                  ├ www/index.html     默认根
                  └ error.log
			

 

Copyright Notice: This article is an exclusive original manuscript, copyright belongs to Happy Digits Software , shall not be reproduced without permission.