CMD nginx 1.7.9 命令詳解


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
			

 

版權聲明: 本文為獨傢原創稿件,版權歸 樂數軟件 ,未經許可不得轉載。