日本免费全黄少妇一区二区三区-高清无码一区二区三区四区-欧美中文字幕日韩在线观看-国产福利诱惑在线网站-国产中文字幕一区在线-亚洲欧美精品日韩一区-久久国产精品国产精品国产-国产精久久久久久一区二区三区-欧美亚洲国产精品久久久久

nginx 服務(wù)器簡介( 三 )


源代碼下載
特定平臺的安裝和記錄
Nginx 在 Slackware 上的編譯安裝腳本
Nginx 在ubuntu和debian上的安裝及腳本,debian針對nginx包的官方下載站點(diǎn)
使用源代碼進(jìn)行構(gòu)建
Nginx 使用 Unix 下常用的 "./configure && make && make install" 過程來編譯安裝 。
configure腳本確定系統(tǒng)所具有一些特性,特別是 nginx 用來處理連接的方法 。然后,它創(chuàng)建 Makefile 文件 。
configure 支持下面的選項(xiàng):
--prefix= - Nginx安裝路徑 。如果沒有指定,默認(rèn)為 /usr/local/nginx 。
--sbin-path= - Nginx可執(zhí)行文件安裝路徑 。只能安裝時指定,如果沒有指定,默認(rèn)為/sbin/nginx 。
--conf-path= - 在沒有給定-c選項(xiàng)下默認(rèn)的nginx.conf的路徑 。如果沒有指定,默認(rèn)為/conf/nginx.conf 。
--pid-path= - 在nginx.conf中沒有指定pid指令的情況下,默認(rèn)的nginx.pid的路徑 。如果沒有指定,默認(rèn)為 /logs/nginx.pid 。
--lock-path= - nginx.lock文件的路徑 。
--error-log-path= - 在nginx.conf中沒有指定error_log指令的情況下,默認(rèn)的錯誤日志的路徑 。如果沒有指定,默認(rèn)為 /logs/error.log 。
--http-log-path= - 在nginx.conf中沒有指定access_log指令的情況下,默認(rèn)的訪問日志的路徑 。如果沒有指定,默認(rèn)為 /logs/access.log 。
--user= - 在nginx.conf中沒有指定user指令的情況下,默認(rèn)的nginx使用的用戶 。如果沒有指定,默認(rèn)為 nobody 。
--group= - 在nginx.conf中沒有指定user指令的情況下,默認(rèn)的nginx使用的組 。如果沒有指定,默認(rèn)為 nobody 。
--builddir=DIR - 指定編譯的目錄
--with-rtsig_module - 啟用 rtsig模塊
--with-select_module --without-select_module - Whether or not to enable the select module. This module is enabled by default if a more suitable method such as kqueue,epoll,rtsig or /dev/poll is not discovered by configure.
//允許或不允許開啟SELECT模式,如果 configure 沒有找到更合適的模式,比如:kqueue(sun os),epoll (linux kenel 2.6 ),rtsig(實(shí)時信號)或者/dev/poll(一種類似select的模式,底層實(shí)現(xiàn)與SELECT基本相 同,都是采用輪訓(xùn)方法) SELECT模式將是默認(rèn)安裝模式
--with-poll_module --without-poll_module - Whether or not to enable the poll module. This module is enabled by default if a more suitable method such as kqueue,epoll,rtsig or /dev/poll is not discovered by configure.
--with-http_ssl_module - Enable ngx_http_ssl_module. Enables SSL support and the ability to handle HTTPS requests. Requires OpenSSL. On Debian,this is libssl-dev.
//開啟HTTP SSL模塊,使NGINX可以支持HTTPS請求 。這個模塊需要已經(jīng)安裝了OPENSSL,在DEBIAN上是libssl
--with-http_realip_module - 啟用 ngx_http_realip_module
--with-http_addition_module - 啟用 ngx_http_addition_module
--with-http_sub_module - 啟用 ngx_http_sub_module
--with-http_dav_module - 啟用 ngx_http_dav_module
--with-http_flv_module - 啟用 ngx_http_flv_module
--with-http_stub_status_module - 啟用 "server status" 頁
--without-http_charset_module - 禁用 ngx_http_charset_module
--without-http_gzip_module - 禁用 ngx_http_gzip_module. 如果啟用,需要 zlib 。
--without-http_ssi_module - 禁用 ngx_http_ssi_module
--without-http_userid_module - 禁用 ngx_http_userid_module
--without-http_access_module - 禁用 ngx_http_access_module
--without-http_auth_basic_module - 禁用 ngx_http_auth_basic_module
--without-http_autoindex_module - 禁用 ngx_http_autoindex_module
--without-http_geo_module - 禁用 ngx_http_geo_module
--without-http_map_module - 禁用 ngx_http_map_module
--without-http_referer_module - 禁用 ngx_http_referer_module
--without-http_rewrite_module - 禁用 ngx_http_rewrite_module. 如果啟用需要 PCRE 。
--without-http_proxy_module - 禁用 ngx_http_proxy_module

推薦閱讀