nginx版本:
nginx-1.6.3.tar.gz
check_upstream-module下载链接:
https://github.com/yaoweibin/nginx_upstream_check_module
一开始试了nginx-1.10.1和nginx1.11.1,在打补丁的时候都报错了,nginx1.6.3打补丁成功
步骤:
下载nginx-1.6.3.tar.gz,nginx_upstream_check_module-master.zip之后,我放在/root目录下
1.解压nginx-1.6.3.tar.gz和nginx_upstream_check_module-master.zip
#tar -zxvf nginx-1.6.3.tar.gz
#unzip nginx_upstream_check_module-master.zip
2.打补丁
#patch -p1 < /root/nginx_upstream_check_module-master/check_1.5.12+.patch
因为我用的是1.6.3版本的nginx,所以这里用1.5.12+
#cd nginx-1.6.3
#./configure --prefix=/mnt/nginx --with-http_ssl_module --add-module=/root/nginx_upstream_check_module-master
#make && make install