Nginx打補丁使用第三方後端健康檢測工具

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章