集群介绍
keepalived介绍
用keepalived配置高可用集群
主上Master配置
[root@martin001 ~]# yum install -y keepalived
iptables -nvL 查看防火墙
主从Backup配置
[root@martin002 ~]# yum install -y keepalived
[root@martin002 ~]# service nginx start
Redirecting to /bin/systemctl start nginx.service
Failed to start nginx.service: Unit not found.
[root@martin002 ~]# yum install -y nginx
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
- base: centos.ustc.edu.cn
- extras: centos.ustc.edu.cn
- updates: mirrors.cn99.com
没有可用软件包 nginx。
缺少 epel-release 包
[root@martin002 ~]# yum -y install epel-release
systemctl start keepalived
转载于:https://blog.51cto.com/12058686/2096744