1.keepalive只需在/etc 目录下建一个文件 keepalived.conf
vrrp_instance VI_1 {
state BACKUP
nopreempt
interface eth0
virtual_router_id 20
priority 100
advert_int 1
authentication {
auth_type PASS
auth_pass 123456
}
virtual_ipaddress {
172.16.231.210/25 dev eth0 label eth0:0
}
track_interface {
eth0
}
#notify_master "/opt/nsfocus/controller/ncsp/ha/ha_vrrp_notify.py master"
#notify_backup "/opt/nsfocus/controller/ncsp/ha/ha_vrrp_notify.py backup"
}
然后启动: sudo keepalived
2.rsync配置参考(已测试)
http://www.linuxidc.com/Linux/2014-03/97592.htm
原创文章,作者:3628473679,如若转载,请注明出处:https://blog.ytso.com/191272.html