Technologieaustausch

LVS Keepalived-Cluster

2024-07-08

한어Русский языкEnglishFrançaisIndonesianSanskrit日本語DeutschPortuguêsΕλληνικάespañolItalianoSuomalainenLatina

Theoretischer Teil

1: Grundkenntnisse über Keepalived Dual-Machine-Hot-Backup

1.1: Keepalived-Übersicht und Installation

1: Keepalived-Hot-Backup-Methode

2: Keepalived-Installation und Servicekontrolle

[root@localhost ~]# systemctl stop NetworkManager

[root@localhost ~]# setenforce 0

[root@localhost ~]# systemctl stoppe Firewall

[root@localhost ~]# yum -y install keepalived ipvsadm

[root@localhost ~]# systemctl aktiviere Keepalived

1.2: Verwenden Sie Keepalived, um ein Hot-Backup auf zwei Maschinen zu erreichen

1: Konfiguration des Hauptservers

[root@localhost ~]# cd /etc/keepalived/

[root@localhost keepalived]# cp keepalived.conf keepalived.conf.bak

[root@localhost keepalived]# vi keepalived.conf

global_defs {