keepalived  安装见   https://blog.csdn.net/qq_37668945/article/details/88618390

 

Keepalived 开机自启动

vim /lib/systemd/system/keepalived.service
[Unit]
Description=LVS and VRRP High Availability Monitor
After= network-online.target syslog.target
Wants=network-online.target

[Service]
Type=forking
PIDFile=/var/run/keepalived.pid
KillMode=process
EnvironmentFile=-/usr/local/etc/sysconfig/keepalived
ExecStart=/usr/local/sbin/keepalived $KEEPALIVED_OPTIONS
ExecReload=/bin/kill -HUP $MAINPID

[Install]
WantedBy=multi-user.target
chkconfig keepalived on

重启机器测试

相关文章:

  • 2022-01-27
  • 2021-07-09
  • 2021-07-27
  • 2021-06-23
  • 2021-10-21
  • 2022-01-27
猜你喜欢
  • 2021-07-07
  • 2021-12-19
  • 2021-12-29
  • 2021-11-24
  • 2021-12-05
相关资源
相似解决方案