- sudo apt-get install libssl-dev
- sudo apt-get install openssl
- sudo apt-get install libpopt-dev
- sudo apt-get install libnl-3-dev
- sudo apt-get install libnl-genl-3-dev
- ##
- sudo apt-get install keepalived
-
- ##
- keepalived -v
-
- ##
- sudo service keepalived [start | stop | reload | restart ]
-
- ##
- ps -ef | grep keepalived
vim /etc/keepalived/keepalived.conf
- ! Configuration File for keepalived
-
- # 邮件通知配置
- global_defs {
- notification_email {
- knight.zhou@qq.com
- }
-
- notification_email_from Alexandre.Cassen@firewall.loc
- smtp_server 192.168.200.1
- smtp_connect_timeout 30
- router_id LVS_DEVEL
- vrrp_skip_check_adv_addr
-
- }
-
- vrrp_instance VI