keepalived配置文件GLOBAL 和 VRRPD 详解
man keepalived.confvim /etc/keepalived/keepalived.conf (配置文件)
notification_email (节点宕机了报警报给谁,收件人)
notification_email_from(发件人)
smtp_server 邮件服务器地址,smtp_connect_timeout 超时时间
advert_int 心跳间隔,priority100 优先级,选举时谁的优先级高就是master ,从的优先级50
http://i2.运维网.com/images/blog/201808/06/421870cfd6abef15038dac138927b299.png
#ifconfig eth0:0 10.0.0.19 up
#ip addr add 192.168.24.155/24 dev eth1
http://i2.运维网.com/images/blog/201808/06/b0ae82da93cb8dc67c7dc95b0224a83e.jpg
备节点配置
http://i2.运维网.com/images/blog/201808/06/0fe21b7e877cc5a498699710cc25a0b5.jpg
http://i2.运维网.com/images/blog/201808/06/018877b6b1a1c38002d246ff57e8a1d3.jpg
页:
[1]