Tengine健康检查模块配置
2017-07-26 18:51
501 查看
Step 1:
在node11节点执行命令
添加如下属性:
Step 2:
在nginx.conf配置文件http—server下面添加如下属性
Step 3:
在nginx.conf配置文件http—server—location下面添加如下属性
Step 4:
在node11节点执行命令,启动tengine
Step 5:
打开浏览器,输入网址进行查看
http://192.168.80.11/status
在node11节点执行命令
vi /opt/apps/tengine/conf/nginx.conf
添加如下属性:
upstream test { server 192.168.80.11:8080 weight=2; server 192.168.80.12:8080 weight=1; check interval=3000 rise=2 fall=5 timeout=1000 type=http; check_http_send "HEAD / HTTP/1.0\r\n\r\n"; check_http_expect_alive http_2xx http_3xx; }
Step 2:
在nginx.conf配置文件http—server下面添加如下属性
location /status { check_status; }
Step 3:
在nginx.conf配置文件http—server—location下面添加如下属性
location / { proxy_pass http://test; root html; index index.html;
Step 4:
在node11节点执行命令,启动tengine
service nginxd start
Step 5:
打开浏览器,输入网址进行查看
http://192.168.80.11/status
相关文章推荐
- Tengine新增健康检查模块
- CentOS7 配置Tengine反向代理tomcat包含健康检查等功能
- linux下tengine2.2.0编译安装、开机启动、反向代理配置及健康检查
- Tengine的健康检查模块
- tengine2.2.0编译安装、开机启动、反向代理配置及健康检查
- maven配置checkstyle检查的自定义模块
- keepalived健康检查方式配置笔记
- nginx利用第三方模块nginx_upstream_check_module来检查后端服务器的健康情况
- Dokcer 配置健康检查
- 配置多个相同网段的ECMP下一跳,配合NQA健康检查实现高可靠性
- 用IOT的思维来管理我们的查看我们重要业务的服务器健康状态-Powershell模块配置篇!
- nginx 健康检查模块 nginx_upstream_check_module
- Tengine(Nginx的升级版)的健康检查
- 5-niginx-健康检查模块
- nginx利用第三方模块nginx_upstream_check_module来检查后端服务器的健康情况
- [转]Eureka自我保护机制、健康检查的作用、actuator模块监控
- nginx利用第三方模块nginx_upstream_check_module来检查后端服务器的健康情况
- 高速通道-冗余物理专线接入-健康检查配置
- zookeeper单机部署的配置及简单健康检查