标签:补丁 -- git 解压 follow 使用 master ash upstream
1.补丁下载网址:https://github.com/yaoweibin/nginx_upstream_check_module
2.下载相应版本的nginx
3.解压nginx
[root@rocketmq-master1 software]# tar xf nginx-1.5.12.tar.gz
4.进入nginx源码并打补丁
[root@rocketmq-master1 software]# cd nginx-1.5.12
[root@rocketmq-master1 nginx-1.5.12]# patch-p1 < /opt/software/nginx_upstream_check_module-master/check_1.5.12+.patch
patching filesrc/http/modules/ngx_http_upstream_ip_hash_module.c
patching filesrc/http/modules/ngx_http_upstream_least_conn_module.c
patching file src/http/ngx_http_upstream_round_robin.c
patching filesrc/http/ngx_http_upstream_round_robin.h
[root@rocketmq-master1 nginx-1.5.12]# echo$?
5.安装nginx
[root@rocketmq-master1 nginx-1.5.12]#./configure --add-module=/opt/software/nginx_upstream_check_module-master
标签:补丁 -- git 解压 follow 使用 master ash upstream
原文地址:https://blog.51cto.com/12529218/2409639