Watch 0 Star 0 Fork 0

正在登陆... / artsJavaApache-2.0

Join us
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
arts-project spread retract

Clone or download
keepalived.conf 774 Bytes
Copy Edit Web IDE Raw Blame History
onfiguration File for keepalived
global_defs {
notification_email {
xuad@xuad.com
}
router_id LVS_DEVEL
vrrp_skip_check_adv_addr
vrrp_strict
vrrp_garp_interval 0
vrrp_gna_interval 0
}
vrrp_script chk_nginx {
script "/etc/keepalived/nginx_pid.sh" # 检查nginx状态的脚本
interval 2
weight 3
}
vrrp_instance VI_1 {
state BACKUP #备份服务器上将MASTER改为BACKUP
interface ens33
virtual_router_id 89
priority 90 #备份服务上将100改为小于100,可配置成90
advert_int 1
authentication {
auth_type PASS
auth_pass 1111
}
virtual_ipaddress {
192.168.101.151 #有多个vip可在下面继续增加
}
track_script {
chk_nginx
}
}

Comment ( 0 )

Sign in for post a comment

Java
1
https://gitee.com/skynoface/arts.git
git@gitee.com:skynoface/arts.git
skynoface
arts
arts
master

Help Search