码迷,mamicode.com
首页 > 其他好文 > 详细

给nginx打nginx_upstream_check_module补丁

时间:2016-01-23 08:06:57      阅读:900      评论:0      收藏:0      [点我收藏+]

标签:nginx_upstream_check_module

1.补丁下载网址:

https://github.com/yaoweibin/nginx_upstream_check_module

2.下载相应版本的nginx

3.解压nginx

[root@rocketmq-master1 software]# tar xfnginx-1.5.12.tar.gz

4.进入nginx源码并打补丁

[root@rocketmq-master1 software]# cdnginx-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


本文出自 “斯图尔特” 博客,请务必保留此出处http://stuart.blog.51cto.com/728677/1737747

给nginx打nginx_upstream_check_module补丁

标签:nginx_upstream_check_module

原文地址:http://stuart.blog.51cto.com/728677/1737747

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!