LVS DR模式启动脚本
LVS DR模式启动脚本 1、DR脚本: [root@ipvs ~]# cat /etc/rc.local #!/bin/sh # This script will be executed after all the other init scripts. You can put your own initialization stuff in here if you don't want to do the full Sys V style init stuff. touch /var/lock/subsys/local #/usr/local/apache/bin/apachectl -f /usr/local/apache/conf/httpd.conf -k start /root/dr_start.sh [root@ipvs ~]# cat dr_start.sh #!/bin/bash ifconfig eth0:0 192.168.1.100 ipvsadm -A -t 192.168.1.100:80 -s wlc ipvsadm -a -t 192.168.1.100:80 -r 192.168.1.102:80 -g -w 2 ipvsadm -a -t 192.168.1.100:80 -r 192.168.1.105:80 -g -w 1 ipvsadmin