centos下編譯安裝nginx|configure參數對照列表

來源:互聯網
上載者:User

4.Nginx的configure指令碼支援的選項。(可以通過  ./configure  --help命令查看Nginx可選擇的編譯選項,以下僅列出本人比較常用的選項

  1. --prefix=<path>   ——Nginx安裝路徑,如果沒有指定,預設為  /usr/local/nginx  
  2. --sbin-path=<path>  ——Nginx可執行檔安裝路徑。只能安裝時指定,如果沒有指定,預設為<prefix>/sbin/nginx  
  3. --conf-path=<path>  ——在沒有給定-c選項下預設的nginx.conf的路徑。如果沒有指定,預設為<prefix>/conf/nginx.conf  
  4. --pid-path=<path>  ——在nginx.conf中沒有指定pid指令的情況下,預設的nginx.pid的路徑。如果沒有指定,預設為<prefix>/logs/nginx.conf  
  5. --error-log-path=<path>  ——在nginx.conf中沒有指定error_log指令的情況下,預設的錯誤記錄檔的路徑。如果沒有指定,預設為<prefix>/logs/error.log  
  6. --http-log-path=<path>  ——在nginx.conf中沒有指定access_log指令的情況下,預設的訪問日誌的路徑。如果沒有指定,預設為<path>/logs/access.log  
  7. --user=<path>  ——在nginx.conf中沒有指定user指令的情況下,預設的Nginx使用的使用者。如果沒有指定,預設為nobody  
  8. --group=<path>  ——在nginx.conf中沒有指定user指令的情況下,預設的Nginx使用的組,如果沒有指定,預設為nobody  
  9. --with-http_ssl_module  ——開啟HTTP SSL模組,使Nginx可以支援HTTPS請求。這個模組需要已經安裝 openssl ,在debian上是libssl  
  10. --with-http_dav_module  ——啟用ngx_http_dav_module  
  11. --with-http_flv_module  ——啟用ngx_http_flv_module  
  12. --with-http_gzip_module  ——啟用ngx_http_gzip_module,需要zlib庫的支援  
  13. --with-http_stub_status_module  ——啟用“server status”統計頁  
  14. --with-http_referer_module  ——啟用ngx_http_referer_module,當瀏覽器向web伺服器發送請求的時候,一般會帶上referer,告訴伺服器我是從哪個頁面連結過來的,伺服器籍此可以獲得一些資訊用於處理  
  15. --with-http_rewrite_module  ——啟用ngx_http_rewrite_module,需要pcre庫的支援  
  16. --with-http_proxy_module  ——啟用ngx_http_proxy_module  
  17. --with-http_fastcgi_module  ——啟用ngx_http_fastcgi_module  
  18. --http-client-body-temp-path=PATH  ——指定http用戶端請求快取檔案存放目錄的路徑  
  19. --http-proxy-temp-path=PATH  ——指定http反向 Proxy快取檔案存放目錄的路徑  
  20. --http-fastcgi-temp-path=PATH  ——指定http FastCGI快取檔案存放目錄的路徑  
  21. --with-mail  ——啟用IMAP4/POP3/SMTP 代理模組  
  22. --with-mail_ssl_module  ——啟用ngx_mail_ssl_module  
  23. --with-cpu-opt=CPU  ——為特定的CPU編譯,有效值包括:pentium 、pentiumpro 、pentium3 、pentium4 、athlon 、opteron 、amd64 、sparc64 、ppc64  
  24. --with-pcre=DIR  ——指定PCRE庫的原始碼的路徑  
  25. --with-pcre-opt=OPTIONS  ——設定PCRE的額外編譯選項  
  26. --with-md5=DIR  ——設定MD5庫的原始碼路徑  
  27. --with-md5-opt=OPTIONS  ——設定MD5庫的額外編譯選項  
  28. --with-md5-asm  ——使用MD5彙編源碼  
  29. --with-sha1=DIR  ——設定sha1庫的原始碼的路徑  
  30. --with-sha1-opt=OPTIONS  ——設定sha1庫的額外編譯選項  
  31. --with-sha1-asm  ——使用sha1彙編源碼  
  32. --with-zlib=DIR  ——設定zlib庫的原始碼路徑  
  33. --with-zlib-opt=OPTIONS  ——設定zlib庫的額外編譯選項  
  34. --with-openssl=DIR  ——設定openssl庫的原始碼路徑  
  35. --with-openssl-opt=OPTIONS  ——設定openssl庫的額外編譯選項  
  36. --with-debug  ——啟用調試日誌  
  37. --add-module=PATH  ——添加一個在指定路徑中能夠找到的第三方模組
  38.  PS:其實可以直接可以用yum 安裝的,但是為了練習 所以,採用編譯方式安裝..
相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.