标签:
下载源码
wget http://nginx.org/download/nginx-1.10.1.tar.gz git clone https://bitbucket.org/nginx-goodies/nginx-sticky-module-ng.git
准备依赖的应用和库
yum -y install gcc yum -y install PCRE yum -y install pcre yum -y install pcre yum -y install pcre-devel yum -y install zlib yum -y install zlib-devel.x86_64 yum -y install openssl yum -y install openssl-devel
解压源文件
tar -zxvf nginx-1.10.1.tar.gz
进入目录
cd nginx-1.10.1/
配置,这里假设你跟我一样把nginx源码和sticky模块放在了同一个目录下
./configure --add-module=/root/temp/nginx-sticky-module-ng
编译安装
make make install
好了,你的nginx在这
/usr/local/nginx/
标签:
原文地址:http://www.cnblogs.com/easyroom/p/5845225.html