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

nginx keepalived 检测N中方法

时间:2018-04-18 15:19:18      阅读:117      评论:0      收藏:0      [点我收藏+]

标签:Nginx keepalived

keepalived nginx 检测方法
vrrp_script check_nginx {
script "[ -f /run/nginx.pid ] && exit 0 || exit 1"
interval 1
weight -20
}
vrrp_instance VI_1 {
state MASTER
interface ens160
garp_master_delay 10
smtp_alert
virtual_router_id 55
priority 100
advert_int 1
authentication {
auth_type PASS
auth_pass 1111
}
track_script {
check_nginx
}
virtual_ipaddress {
172.17.8.144
172.17.8.145
}
}

nginx keepalived 检测N中方法

标签:Nginx keepalived

原文地址:http://blog.51cto.com/study2008/2104846

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