Keepalived部署的注意事项

280 阅读1分钟

Keepalived部署的注意事项

1、Keepalived无法启动

一般是由于selinux未关闭,关闭方法:
编辑 /etc/selinux/config 文件
修改 SELINUX=enforcing 为 SELINUX=disabled

2、各机器之间无法通信

各机器见无法相互通信,主要是因为vrrp协议被防火墙阻止了,需要打开防火墙\

firewall-cmd --direct --permanent --add-rule ipv4 filter INPUT 0 --in-interface eth0 --destination 224.0.0.18 --protocol vrrp -j ACCEPT

3、检测脚本不工作

这是因为执行脚本没有权限,需要给执行权限