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 \
相关文章
相关标签/搜索