nginx version: nginx/1.2.1
usage: nginx [-?hvvtq] [-s signal] [-c filename] [-p prefix] [-g directives]
options:
-?,-h : this help
-v : show version and exit//顯示出nginx的版本號
-v : show version and configure options then exit//顯示出nginx版本號和配置選項後退出
-q : suppress non-error messages during configuration testing
-s signal : send signal to a master process: stop, quit, reopen, reload//傳送乙個訊號給master,這裡的reload引數很重要,是優雅重啟nginx引數。類似apache的graceful
-c filename : set configuration file (default: conf/nginx.conf)//使用指定的配置檔案,而不是conf/nginx.conf,乙個例項乙個配置檔案,啟動哪個例項,使用哪個配置檔案
-g directives : set global directives out of configuration file
Nginx配置引數說明
檢測nginx配置檔案是否正確 usr local nginx sbin nginx t c nginx.conf c 配置檔案路徑 g set global directives.version 0.7.4 t 檢測檔案是否正確不執行 v print version.v print nginx v...
Nginx配置引數說明
檢測nginx配置檔案是否正確 usr local nginx sbin nginx t c nginx.conf c 配置檔案路徑 g set global directives.version 0.7.4 t 檢測檔案是否正確不執行 v print version.v print nginx v...
nginx配置(一)引數說明
nginx伺服器日誌相關指令主要有兩條,一條是log format 用來設定日誌格式,另外一條是access log,用來指定日誌檔案的存放路徑 格式和快取大小,一般在nginx的配置檔案中日誌配置 usr local nginx conf nginx.conf nginx的log format有很...