1. 程式人生 > >18.1 集群介紹 18.2 keepalived介紹 18.3/18.4/18.5 用keepal

18.1 集群介紹 18.2 keepalived介紹 18.3/18.4/18.5 用keepal

用keepalived配置高可用集群

集群介紹

技術分享圖片

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
    技術分享圖片
    技術分享圖片

18.1 集群介紹 18.2 keepalived介紹 18.3/18.4/18.5 用keepal