nginx 安裝 經常使用模塊

1.下載地址  https://nginx.org/en/download.htmlhtml

2.這些標準模塊都不是必需的,但都是很經常使用的,通常默認直接安裝到nginx軟件中,在生產環境中,配置、調整以及優化Nginx軟件,主要是經過修改這些參數來實現.nginx

  • ngx_http_core_module 包括一些http核心參數配置
  • ngx_http_access_module 訪問控制模塊
  • ngx_http_gzip_module 壓縮模塊,優化
  • ngx_http_fastcgi_module Fast_cgi模塊
  • ngx_http_proxy_module 代理模塊
  • ngx_http_upsteam_module 負載均衡模塊
  • ngx_http_rewrite_module Url 地址重寫模塊
  • ngx_http_limit_conn_module 限制用戶併發鏈接、請求模塊
  • ngx_http_limit_req_module 限制用戶請求速率模塊
  • ngx_http_log_module 用戶訪問日誌模塊
  • ngx_http_auth_basic_module web訪問認證模塊
  • ngx_http_ssl_module ssl模塊,用於https鏈接
  • ngx_http_stub_status_module 記錄Nginx基本訪問狀態信息等模塊

3.web

yum install pcre-devel openssl-devel gcc curl
cd
wget https://nginx.org/download/nginx-1.12.2.tar.gz
wget http://tengine.taobao.org/download/tengine-2.1.2.tar.gz
tar -zxf nginx-1.12.2.tar.gz
cp nginx-1.12.2.tar.gz /usr/local/src/
cd /usr/local/src/nginx-1.12.2
./configure --prefix=/usr/local/nginx \
--with-http_ssl_module \
--with-poll_module \
相關文章
相關標籤/搜索