一.DR模式 LVS負(fù)載均衡群集部署
- ipvsadm 工具選項(xiàng)說明:
工具選項(xiàng) | 作用 |
---|---|
-A | 添加虛擬服務(wù)器 |
-D | 刪除整個(gè)虛擬服務(wù)器 |
-s | 指定負(fù)載調(diào)度算法(輪詢:rr、加權(quán)輪詢:wrr、最少連接:lc、加權(quán)最少連接:wlc) |
-a | 表示添加真實(shí)服務(wù)器(節(jié)點(diǎn)服務(wù)器) |
-d | 刪除某一個(gè)節(jié)點(diǎn) |
-t | 指定 VIP地址及 TCP端口 |
-r | 指定 RIP地址及 TCP端口 |
-m | 表示使用 NAT群集模式 |
-g | 表示使用 DR模式 |
-i | 表示使用 TUN模式 |
-w | 設(shè)置權(quán)重(權(quán)重為 0 時(shí)表示暫停節(jié)點(diǎn)) |
-p 60 | 表示保持長(zhǎng)連接60秒(默認(rèn)關(guān)閉連接保持) |
-l | 列表查看 LVS 虛擬服務(wù)器(默認(rèn)為查看所有) |
-n | 以數(shù)字形式顯示地址、端口等信息,常與“-l”選項(xiàng)組合使用。ipvsadm -ln |
- 實(shí)驗(yàn)前準(zhǔn)備
DR 服務(wù)器: 192.168.247.131
Web 服務(wù)器1:192.168.247.135
Web 服務(wù)器2:192.168.247.136
vip: 192.168.247.188
客戶端: 192.168.247.134
1.配置負(fù)載調(diào)度器(192.168.247.131)
systemctl stop firewalld.service
setenforce 0
modprobe ip_vs
cat /proc/net/ip_vs
yum -y install ipvsadm
(1)配置虛擬 IP 地址(VIP:192.168.247.188)
cd /etc/sysconfig/network-scripts/
cp ifcfg-ens32 ifcfg-ens32:0
vim ifcfg-ens32:0
DEVICE=ens32:0
ONBOOT=yes
IPADDR=192.168.247.188
NETMASK=255.255.255.255
ifup ens32:0
ifconfig ens32:0
(2)調(diào)整 proc 響應(yīng)參數(shù)
vim /etc/sysctl.conf
net.ipv4.ip_forward = 0
net.ipv4.conf.all.send_redirects = 0
net.ipv4.conf.default.send_redirects = 0
net.ipv4.conf.ens32.send_redirects = 0
sysctl -p
(3)配置負(fù)載分配策略
ipvsadm-save > /etc/sysconfig/ipvsadm
systemctl start ipvsadm
ipvsadm -C
ipvsadm -A -t 192.168.247.188:80 -s rr
ipvsadm -a -t 192.168.247.188:80 -r 192.168.247.135:80 -g
ipvsadm -a -t 192.168.247.188:80 -r 192.168.247.136:80 -g
ipvsadm
ipvsadm -ln
-
示例:DR 服務(wù)器(192.168.247.131)
[root@lion conf.d]# systemctl stop firewalld.service
[root@lion conf.d]# setenforce 0
[root@lion conf.d]# modprobe ip_vs
[root@lion conf.d]# cat /proc/net/ip_vs
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
[root@lion conf.d]# yum -y install ipvsadm
已加載插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
local | 3.6 kB 00:00:00
nginx-stable | 2.9 kB 00:00:00
正在解決依賴關(guān)系
--> 正在檢查事務(wù)
---> 軟件包 ipvsadm.x86_64.0.1.27-7.el7 將被 安裝
--> 解決依賴關(guān)系完成
依賴關(guān)系解決
===================================================================================
Package 架構(gòu) 版本 源 大小
===================================================================================
正在安裝:
ipvsadm x86_64 1.27-7.el7 local 45 k
事務(wù)概要
===================================================================================
安裝 1 軟件包
總下載量:45 k
安裝大?。?5 k
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
正在安裝 : ipvsadm-1.27-7.el7.x86_64 1/1
驗(yàn)證中 : ipvsadm-1.27-7.el7.x86_64 1/1
已安裝:
ipvsadm.x86_64 0:1.27-7.el7
完畢!
[root@lion conf.d]# cd /etc/sysconfig/network-scripts/
[root@lion network-scripts]# cp ifcfg-ens32 ifcfg-ens32:0
[root@lion network-scripts]# vim ifcfg-ens32:0
DEVICE=ens32:0
ONBOOT=yes
IPADDR=192.168.247.188
NETMASK=255.255.255.255
[root@lion network-scripts]# ifup ens32:0
[root@lion network-scripts]# ifconfig ens32:0
ens32:0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.247.188 netmask 255.255.255.255 broadcast 192.168.247.188
ether 00:0c:29:d8:04:9b txqueuelen 1000 (Ethernet)
[root@lion network-scripts]# vim /etc/sysctl.conf
net.ipv4.ip_forward = 0
net.ipv4.conf.all.send_redirects = 0
net.ipv4.conf.default.send_redirects = 0
net.ipv4.conf.ens32.send_redirects = 0
[root@lion network-scripts]# sysctl -p
net.ipv4.ip_forward = 0
net.ipv4.conf.all.send_redirects = 0
net.ipv4.conf.default.send_redirects = 0
net.ipv4.conf.ens32.send_redirects = 0
[root@lion network-scripts]# ipvsadm-save > /etc/sysconfig/ipvsadm
[root@lion network-scripts]# systemctl start ipvsadm
[root@lion network-scripts]# ipvsadm -C
[root@lion network-scripts]# ipvsadm -A -t 192.168.247.188:80 -s rr
[root@lion network-scripts]# ipvsadm -a -t 192.168.247.188:80 -r 192.168.247.135:80 -g
[root@lion network-scripts]# ipvsadm -a -t 192.168.247.188:80 -r 192.168.247.136:80 -g
[root@lion network-scripts]# ipvsadm
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
TCP lion:http rr
-> 192.168.247.135:http Route 1 0 0
-> 192.168.247.136:http Route 1 0 0
[root@lion network-scripts]# ipvsadm -ln
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
TCP 192.168.247.188:80 rr
-> 192.168.247.135:80 Route 1 3 0
-> 192.168.247.136:80 Route 1 0 0
[root@lion network-scripts]# systemctl stop firewalld
[root@lion network-scripts]# setenforce 0
-> 192.168.247.135:http Route 1 3 0
-> 192.168.247.136:http Route 1 0 0
2.部署共享存儲(chǔ)(NFS服務(wù)器:192.168.247.134)
systemctl stop firewalld.service
setenforce 0
yum -y install nfs-utils rpcbind
mkdir /opt/kgc /opt/benet
chmod 777 /opt/kgc /opt/benet
vim /etc/exports
/opt/kgc 192.168.247.0/24(r0)
/opt/benet 192.168.247.0/24(r0)
systemctl start rpcbind.service
systemctl start nfs.service
-
示例:NFS服務(wù)器(192.168.247.134 )
[root@localhost test]# systemctl stop firewalld.service
[root@localhost test]# setenforce 0
[root@localhost test]# cd
[root@localhost ~]# yum -y install nfs-utils rpcbind
[root@localhost ~]# mkdir /opt/kgc /opt/benet
[root@localhost ~]# chmod 777 /opt/kgc /opt/benet
[root@localhost ~]# vim /etc/exports
[root@localhost ~]# systemctl start rpcbind.service
[root@localhost ~]# systemctl start nfs.service
[root@localhost html]# cd /var/www/html/
[root@localhost html]#mount.nfs 192.168.247.134:/opt/kgc /var/www/html
[root@localhost html]#echo 'this is kgc web!' > /var/www/html/index.html
[root@localhost html]# mount 192.168.247.134:/opt/benet /var/www/html/
[root@localhost html]# echo 'this is benet web!' > /var/www/html/index.html
[root@localhost ~]# systemctl restart rpcbind
[root@localhost ~]# systemctl restart nfs
[root@localhost ~]# showmount -e 192.168.247.134
Export list for 192.168.247.134:
/opt/benet 192.168.247.0/24
/opt/kgc 192.168.247.0/24
3.配置節(jié)點(diǎn)服務(wù)器(192.168.247.100、192.168.247.101)
systemctl stop firewalld.service
setenforce 0
(1)配置虛擬 IP 地址(VIP:192.168.247.188)
cd /etc/sysconfig/network-scripts/
cp ifcfg-lo ifcfg-lo:0
vim ifcfg-lo:0
DEVICE=lo:0
ONBOOT=yes
IPADDR=192.168.247.188
NETMASK=255.255.255.255 #注意:子網(wǎng)掩碼必須全為 1
ifup lo:0
ifconfig lo:0
route add -host 192.168.247.188 dev lo:0
vim /etc/rc.local
/sbin/route add -host 192.168.247.188 dev lo:0
chmod +x /etc/rc.d/rc.local
(2)調(diào)整內(nèi)核的 ARP 響應(yīng)參數(shù)以阻止更新 VIP 的 MAC 地址,避免發(fā)生沖突
vim /etc/sysctl.conf
......
net.ipv4.conf.lo.arp_ignore = 1 #系統(tǒng)只響應(yīng)目的IP為本地IP的ARP請(qǐng)求
net.ipv4.conf.lo.arp_announce = 2 #系統(tǒng)不使用IP包的源地址來設(shè)置ARP請(qǐng)求的源地址,而選擇發(fā)送接口的IP地址
net.ipv4.conf.all.arp_ignore = 1
net.ipv4.conf.all.arp_announce = 2
sysctl -p
yum -y install nfs-utils rpcbind httpd
systemctl start rpcbind
systemctl start httpd
mount.nfs 192.168.247.134:/opt/kgc /var/www/html #192.168.247.100
echo 'this is kgc web!' > /var/www/html/index.html
mount.nfs 192.168.247.134:/opt/benet /var/www/html #192.168.247.101
echo 'this is benet web!' > /var/www/html/index.html
-
示例:節(jié)點(diǎn)服務(wù)器1(192.168.247.135---->192.168.247.100)
[root@localhost ~]# systemctl stop firewalld.service
[root@localhost ~]# setenforce 0
[root@localhost ~]# cd /etc/sysconfig/network-scripts/
[root@localhost network-scripts]# cp ifcfg-lo ifcfg-lo:0
[root@localhost network-scripts]# vim ifcfg-lo:0
DEVICE=lo:0
ONBOOT=yes
IPADDR=192.168.247.188
NETMASK=255.255.255.255
[root@localhost network-scripts]# ifup lo:0
[root@localhost network-scripts]# ifconfig lo:0
lo:0: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 192.168.247.188 netmask 255.255.255.255
loop txqueuelen 1000 (Local Loopback)
[root@localhost network-scripts]# route add -host 192.168.247.188 dev lo:0
[root@localhost network-scripts]# vim /etc/rc.local
/sbin/route add -host 192.168.247.188 dev lo:0 #將最后一行刪除并添加
[root@localhost network-scripts]# chmod +x /etc/rc.d/rc.local
[root@localhost network-scripts]# vim /etc/sysctl.conf
net.ipv4.conf.lo.arp_ignore = 1
net.ipv4.conf.lo.arp_announce = 2
net.ipv4.conf.all.arp_ignore = 1
net.ipv4.conf.all.arp_announce = 2
[root@localhost network-scripts]# sysctl -p
net.ipv4.conf.lo.arp_ignore = 1
net.ipv4.conf.lo.arp_announce = 2
net.ipv4.conf.all.arp_ignore = 1
net.ipv4.conf.all.arp_announce = 2
[root@localhost network-scripts]# yum -y install nfs-utils rpcbind httpd
已加載插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: ftp.sjtu.edu.cn
* extras: mirrors.ustc.edu.cn
* updates: mirrors.ustc.edu.cn
base | 3.6 kB 00:00:00
extras | 2.9 kB 00:00:00
updates | 2.9 kB 00:00:00
(1/4): base/7/x86_64/group_gz | 153 kB 00:00:00
(2/4): extras/7/x86_64/primary_db | 249 kB 00:00:00
(3/4): base/7/x86_64/primary_db | 6.1 MB 00:00:03
(4/4): updates/7/x86_64/primary_db | 21 MB 00:00:13
軟件包 rpcbind-0.2.0-49.el7.x86_64 已安裝并且是最新版本
正在解決依賴關(guān)系
--> 正在檢查事務(wù)
---> 軟件包 httpd.x86_64.0.2.4.6-99.el7.centos.1 將被 安裝
--> 正在處理依賴關(guān)系 httpd-tools = 2.4.6-99.el7.centos.1,它被軟件包 httpd-2.4.6-99.el7.centos.1.x86_64 需要
--> 正在處理依賴關(guān)系 /etc/mime.types,它被軟件包 httpd-2.4.6-99.el7.centos.1.x86_64 需要
---> 軟件包 nfs-utils.x86_64.1.1.3.0-0.68.el7 將被 升級(jí)
---> 軟件包 nfs-utils.x86_64.1.1.3.0-0.68.el7.2 將被 更新
--> 正在檢查事務(wù)
---> 軟件包 httpd-tools.x86_64.0.2.4.6-99.el7.centos.1 將被 安裝
---> 軟件包 mailcap.noarch.0.2.1.41-2.el7 將被 安裝
--> 解決依賴關(guān)系完成
依賴關(guān)系解決
=======================================================================================================
Package 架構(gòu) 版本 源 大小
=======================================================================================================
正在安裝:
httpd x86_64 2.4.6-99.el7.centos.1 updates 2.7 M
正在更新:
nfs-utils x86_64 1:1.3.0-0.68.el7.2 updates 413 k
為依賴而安裝:
httpd-tools x86_64 2.4.6-99.el7.centos.1 updates 94 k
mailcap noarch 2.1.41-2.el7 base 31 k
事務(wù)概要
=======================================================================================================
安裝 1 軟件包 (+2 依賴軟件包)
升級(jí) 1 軟件包
總下載量:3.2 M
Downloading packages:
No Presto metadata available for updates
警告:/var/cache/yum/x86_64/7/updates/packages/httpd-tools-2.4.6-99.el7.centos.1.x86_64.rpm: 頭V3 RSA/SHA256 Signature, 密鑰 ID f4a80eb5: NOKEY
httpd-tools-2.4.6-99.el7.centos.1.x86_64.rpm 的公鑰尚未安裝
(1/4): httpd-tools-2.4.6-99.el7.centos.1.x86_64.rpm | 94 kB 00:00:00
(2/4): nfs-utils-1.3.0-0.68.el7.2.x86_64.rpm | 413 kB 00:00:00
mailcap-2.1.41-2.el7.noarch.rpm 的公鑰尚未安裝
(3/4): mailcap-2.1.41-2.el7.noarch.rpm | 31 kB 00:00:00
(4/4): httpd-2.4.6-99.el7.centos.1.x86_64.rpm | 2.7 MB 00:00:01
-------------------------------------------------------------------------------------------------------
總計(jì) 3.0 MB/s | 3.2 MB 00:00:01
從 file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 檢索密鑰
導(dǎo)入 GPG key 0xF4A80EB5:
用戶ID : "CentOS-7 Key (CentOS 7 Official Signing Key) <security@centos.org>"
指紋 : 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5
軟件包 : centos-release-7-9.2009.0.el7.centos.x86_64 (@anaconda)
來自 : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
警告:RPM 數(shù)據(jù)庫(kù)已被非 yum 程序修改。
正在安裝 : httpd-tools-2.4.6-99.el7.centos.1.x86_64 1/5
正在安裝 : mailcap-2.1.41-2.el7.noarch 2/5
正在安裝 : httpd-2.4.6-99.el7.centos.1.x86_64 3/5
正在更新 : 1:nfs-utils-1.3.0-0.68.el7.2.x86_64 4/5
清理 : 1:nfs-utils-1.3.0-0.68.el7.x86_64 5/5
驗(yàn)證中 : mailcap-2.1.41-2.el7.noarch 1/5
驗(yàn)證中 : 1:nfs-utils-1.3.0-0.68.el7.2.x86_64 2/5
驗(yàn)證中 : httpd-tools-2.4.6-99.el7.centos.1.x86_64 3/5
驗(yàn)證中 : httpd-2.4.6-99.el7.centos.1.x86_64 4/5
驗(yàn)證中 : 1:nfs-utils-1.3.0-0.68.el7.x86_64 5/5
已安裝:
httpd.x86_64 0:2.4.6-99.el7.centos.1
作為依賴被安裝:
httpd-tools.x86_64 0:2.4.6-99.el7.centos.1 mailcap.noarch 0:2.1.41-2.el7
更新完畢:
nfs-utils.x86_64 1:1.3.0-0.68.el7.2
完畢!
[root@localhost network-scripts]# systemctl start rpcbind
[root@localhost network-scripts]# systemctl start httpd
[root@localhost html]# systemctl stop firewalld
[root@localhost html]# setenforce 0
[root@localhost html]# vim /etc/httpd/conf/httpd.conf
KeepAlive off #添加至末尾
[root@localhost html]# systemctl restart httpd
節(jié)點(diǎn)服務(wù)器2(192.168.247.136---->192.168.247.101)
[root@localhost conf.d]# systemctl stop firewalld.service
[root@localhost conf.d]# setenforce 0
[root@localhost conf.d]# cd /etc/sysconfig/network-scripts/
[root@localhost network-scripts]# cp ifcfg-lo ifcfg-lo:0
[root@localhost network-scripts]# vim ifcfg-lo:0
DEVICE=lo:0
ONBOOT=yes
IPADDR=192.168.247.188
NETMASK=255.255.255.255
[root@localhost network-scripts]# ifup lo:0
[root@localhost network-scripts]# ifconfig lo:0
lo:0: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 192.168.247.188 netmask 255.255.255.255
loop txqueuelen 1000 (Local Loopback)
[root@localhost network-scripts]# route add -host 192.168.247.188 dev lo:0
[root@localhost network-scripts]# vim /etc/rc.local
/sbin/route add -host 192.168.247.188 dev lo:0
[root@localhost network-scripts]# chmod +x /etc/rc.d/rc.local
[root@localhost network-scripts]# vim /etc/sysctl.conf
net.ipv4.conf.lo.arp_ignore = 1
net.ipv4.conf.lo.arp_announce = 2
net.ipv4.conf.all.arp_ignore = 1
net.ipv4.conf.all.arp_announce = 2
[root@localhost network-scripts]# sysctl -p
net.ipv4.conf.lo.arp_ignore = 1
net.ipv4.conf.lo.arp_announce = 2
net.ipv4.conf.all.arp_ignore = 1
net.ipv4.conf.all.arp_announce = 2
[root@localhost network-scripts]# yum -y install nfs-utils rpcbind httpd
已加載插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: ftp.sjtu.edu.cn
* extras: mirrors.ustc.edu.cn
* updates: ftp.sjtu.edu.cn
base | 3.6 kB 00:00:00
extras | 2.9 kB 00:00:00
nginx-stable | 2.9 kB 00:00:00
updates | 2.9 kB 00:00:00
正在解決依賴關(guān)系
--> 正在檢查事務(wù)
---> 軟件包 httpd.x86_64.0.2.4.6-99.el7.centos.1 將被 安裝
--> 正在處理依賴關(guān)系 httpd-tools = 2.4.6-99.el7.centos.1,它被軟件包 httpd-2.4.6-99.el7.centos.1.x86_64 需要
--> 正在處理依賴關(guān)系 /etc/mime.types,它被軟件包 httpd-2.4.6-99.el7.centos.1.x86_64 需要
---> 軟件包 nfs-utils.x86_64.1.1.3.0-0.61.el7 將被 升級(jí)
---> 軟件包 nfs-utils.x86_64.1.1.3.0-0.68.el7.2 將被 更新
---> 軟件包 rpcbind.x86_64.0.0.2.0-47.el7 將被 升級(jí)
---> 軟件包 rpcbind.x86_64.0.0.2.0-49.el7 將被 更新
--> 正在檢查事務(wù)
---> 軟件包 httpd-tools.x86_64.0.2.4.6-99.el7.centos.1 將被 安裝
---> 軟件包 mailcap.noarch.0.2.1.41-2.el7 將被 安裝
--> 解決依賴關(guān)系完成
依賴關(guān)系解決
=======================================================================================================
Package 架構(gòu) 版本 源 大小
=======================================================================================================
正在安裝:
httpd x86_64 2.4.6-99.el7.centos.1 updates 2.7 M
正在更新:
nfs-utils x86_64 1:1.3.0-0.68.el7.2 updates 413 k
rpcbind x86_64 0.2.0-49.el7 base 60 k
為依賴而安裝:
httpd-tools x86_64 2.4.6-99.el7.centos.1 updates 94 k
mailcap noarch 2.1.41-2.el7 base 31 k
事務(wù)概要
=======================================================================================================
安裝 1 軟件包 (+2 依賴軟件包)
升級(jí) 2 軟件包
總計(jì):3.3 M
總下載量:2.8 M
Downloading packages:
(1/3): mailcap-2.1.41-2.el7.noarch.rpm | 31 kB 00:00:00
(2/3): httpd-tools-2.4.6-99.el7.centos.1.x86_64.rpm | 94 kB 00:00:00
(3/3): httpd-2.4.6-99.el7.centos.1.x86_64.rpm | 2.7 MB 00:00:00
-------------------------------------------------------------------------------------------------------
總計(jì) 3.9 MB/s | 2.8 MB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
警告:RPM 數(shù)據(jù)庫(kù)已被非 yum 程序修改。
正在更新 : rpcbind-0.2.0-49.el7.x86_64 1/7
正在安裝 : mailcap-2.1.41-2.el7.noarch 2/7
正在安裝 : httpd-tools-2.4.6-99.el7.centos.1.x86_64 3/7
正在安裝 : httpd-2.4.6-99.el7.centos.1.x86_64 4/7
正在更新 : 1:nfs-utils-1.3.0-0.68.el7.2.x86_64 5/7
清理 : 1:nfs-utils-1.3.0-0.61.el7.x86_64 6/7
清理 : rpcbind-0.2.0-47.el7.x86_64 7/7
驗(yàn)證中 : httpd-tools-2.4.6-99.el7.centos.1.x86_64 1/7
驗(yàn)證中 : mailcap-2.1.41-2.el7.noarch 2/7
驗(yàn)證中 : httpd-2.4.6-99.el7.centos.1.x86_64 3/7
驗(yàn)證中 : 1:nfs-utils-1.3.0-0.68.el7.2.x86_64 4/7
驗(yàn)證中 : rpcbind-0.2.0-49.el7.x86_64 5/7
驗(yàn)證中 : 1:nfs-utils-1.3.0-0.61.el7.x86_64 6/7
驗(yàn)證中 : rpcbind-0.2.0-47.el7.x86_64 7/7
已安裝:
httpd.x86_64 0:2.4.6-99.el7.centos.1
作為依賴被安裝:
httpd-tools.x86_64 0:2.4.6-99.el7.centos.1 mailcap.noarch 0:2.1.41-2.el7
更新完畢:
nfs-utils.x86_64 1:1.3.0-0.68.el7.2 rpcbind.x86_64 0:0.2.0-49.el7
完畢!
[root@localhost network-scripts]# systemctl start rpcbind
[root@localhost network-scripts]# systemctl start httpd
[root@localhost html]# systemctl stop firewalld
[root@localhost html]# setenforce 0
[root@localhost html]# vim /etc/httpd/conf/httpd.conf
KeepAlive off #添加至末尾
[root@localhost html]# systemctl restart httpd
4.測(cè)試 LVS 群集
- 在客戶端使用瀏覽器訪問 http://192.168.247.188/
文章來源:http://www.zghlxwxcb.cn/news/detail-476661.html
文章來源地址http://www.zghlxwxcb.cn/news/detail-476661.html
到了這里,關(guān)于LVS負(fù)載均衡群集部署(DR模式)的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!