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$?
0
5.安装Nginx
[root@rocketmq-master1 Nginx-1.5.12]#./configure --add-module=/opt/software/Nginx_upstream_check_module-master
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。