栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

nginx-nginx

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

nginx-nginx

nginx版本nginx-1.20.2.tar.gz

wget https://github.com/yaoweibin/nginx_upstream_check_module/archive/refs/heads/master.zip

进入到nginx根目录

cd /datasdb/nginx-1.20.2/
yum install - patch

打补丁 

patch -p1 < ../nginx_upstream_check_module-master/check_1.20.1+.patch
./configure --with-http_stub_status_module --add-module=/datasdb/nginx_upstream_check_module-master

注:这里我还用到了http_stub_status_module模块,所以一起打包编译

make

执行无损升级方案即可

conf配置:

	upstream local_tomcat { 
		server 172.16.200.34:9101 max_fails=2 fail_timeout=1s;  
		server 172.16.200.39:9101 max_fails=2 fail_timeout=1s;  
       
        check interval=3000 rise=2 fall=3 timeout=1000 type=http;
        check_http_send "GET /index.jsp HTTP/1.0rnrn";
        check_http_expect_alive  http_2xx http_3xx;
	}
location /tomcat_status {
  check_status;
  access_log   off;
}

最终效果:

 

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/973941.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号