nginx 安装 常用模块

1.下载地址  https://nginx.org/en/download.html

2.这些标准模块都不是必需的,但都是很常用的,一般默认直接安装到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.

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 \


 

转载于:https://my.oschina.net/u/736174/blog/1648024

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值