18.1 集群介紹 18.2 keepalived介紹 18.3/18.4/18.5 用keepal
阿新 • • 發佈:2018-04-11
用keepalived配置高可用集群集群介紹
已加載插件:fastestmirror
Loading mirror speeds from cached hostfile
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
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
18.1 集群介紹 18.2 keepalived介紹 18.3/18.4/18.5 用keepal