centos7 编译安装nginx1.9.8

1.安装支持工具

yum -y install pcre* wget gcc openssl-devel

PCRE 作用是让 Ngnix 支持 Rewrite 功能

 

2.安装nginx

  1. 切换到安装目录
  2. 下载:wget http://nginx.org/download/nginx-1.9.8.tar.gz
  3. 解压缩 tar -zxvf nginx-1.9.8.tar.gz
  4. cd nginx-1.9.8
  5. ./configure --prefix=安装位置路径 --with-http_ssl_module --with-http_v2_module --with-http_stub_status_module --with-pcre
  6. make && make install

 

3.启动nginx

./sbin/nginx -c conf/nginx.conf

转载于:https://my.oschina.net/bobwei/blog/1829349

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值