您好,登錄后才能下訂單哦!
rpm -ql ipvsadm
rpm -y install ipvsadm
ifconfig eth0:1 192.168.2.150/24
實驗環(huán)境是兩臺RealServer 靜態(tài)IP分別為: 192.168.2.137 192.168.2.138
echo "1" >/proc/sys/net/ipv4/conf/eth0/arp_ignore echo "1" >/proc/sys/net/ipv4/conf/all/arp_ignore echo "2" >/proc/sys/net/ipv4/conf/all/arp_announce echo "2" >/proc/sys/net/ipv4/conf/eth0/arp_announce
ifconfig lo:1 192.168.2.150 netmask 255.255.255.255 broadcast 192.168.2.150
route add -host 192.168.2.150 dev eth0:1
route add -host 192.168.2.150 dev lo:1
yum -y install httpd #啟動httpd service httpd start/stop/restart
192.168.2.137 192.168.2.138
#創(chuàng)建集群服務(wù) ipvsadm -C ipvsadm -A -t 192.168.2.150:80 -s wlc ipvsadm -a -t 192.168.2.150:80 -r 192.168.2.138 -g -w 1 ipvsadm -a -t 192.168.2.150:80 -r 192.168.2.137 -g -w 1 #查看 ipvsadm -Ln ipvsadm -L
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。