HTTP 反向代理。
注意: 不支持非 ASCII 字符路径。
另请参阅: Nginx 1.15.6 文档编制
nginx [-?hvVtq] [-s signal] [-c filename] [-p prefix] [-g directives]
选项参数
| 参数 | EN 解释 | 中文翻译 | 备注 |
|---|---|---|---|
| -?,-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 | 设置配置文件外的全局指令 |
| 功能 | 命令 | 文字解释 | 示例 | 示例解释 |
|---|---|---|---|---|
| 帮助 | nginx -? | 展示帮助信息 | ||
| nginx -h | ||||
| 版本 | nginx -v | 展示版本信息 | ||
| nginx -V | 展示版本信息 配置选项 |
本机 http://127.0.0.1/index.html
目录结构
nginx/runtime/nginx/nginx.exe
├ conf/nginx.conf 配置文件
├ logs/access.log 日志目录
├ www/index.html 默认根
└ error.log
版权声明: 本文为独家原创稿件,版权归 乐数软件 ,未经许可不得转载。