配置本地yum源
1 | cd /etc/yum.repos.d/ |
基本环境
1 | yum install keepalived |
nginx监控脚本
1 | cd /etc/keepalived/ |
keepalived.conf 配置
1 | cp keepalived.conf keepalived.conf.bak |
启动keepalived
1 | systemctl enable keepalived |
1 | cd /etc/yum.repos.d/ |
1 | yum install keepalived |
1 | cd /etc/keepalived/ |
1 | cp keepalived.conf keepalived.conf.bak |
1 | systemctl enable keepalived |