给nginx打nginx_upstream_check_module补丁
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了给nginx打nginx_upstream_check_module补丁相关的知识,希望对你有一定的参考价值。
1.补丁下载网址:
https://github.com/yaoweibin/nginx_upstream_check_module
2.下载相应版本的nginx
3.解压nginx
[[email protected] software]# tar xfnginx-1.5.12.tar.gz
4.进入nginx源码并打补丁
[[email protected] software]# cdnginx-1.5.12
[[email protected] 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
[[email protected] nginx-1.5.12]# echo$?
0
5.安装nginx
[[email protected] 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打nginx_upstream_check_module补丁
使用DaemonSet+Taint/Tolerations+NodeSelector部署Nginx Ingress Controller
使用DaemonSet+Taint/Tolerations+NodeSelector部署Nginx Ingress Controller