2 Star 9 Fork 4

刘悦的技术博客 / nginx_keepalive

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
keepalived-slave.conf 459 Bytes
Copy Edit Web IDE Raw Blame History
liuyue authored 2019-10-18 06:41 . first commit
vrrp_script chk_nginx {
script "pidof nginx"
interval 2
}
vrrp_instance VI_1 {
state BACKUP
interface eth0
virtual_router_id 33
priority 100
advert_int 1
unicast_src_ip 172.20.128.3
unicast_peer {
172.20.128.2
}
authentication {
auth_type PASS
auth_pass letmein
}
virtual_ipaddress {
172.20.128.4/24 dev eth0
}
track_script {
chk_nginx
}
}

Comment ( 0 )

Sign in for post a comment

1
https://gitee.com/QiHanXiBei/nginx_keepalive.git
git@gitee.com:QiHanXiBei/nginx_keepalive.git
QiHanXiBei
nginx_keepalive
nginx_keepalive
master

Search