在使用雙機軟件過程中,如果系統(tǒng)是centos 5.x 默認(rèn)系統(tǒng)安裝完成后為xen內(nèi)核,那么xen內(nèi)核引導(dǎo)啟動后就會有虛擬網(wǎng)卡(vethx、vif0.x、virbr0、xenbr1等)存在。
公司主營業(yè)務(wù):成都網(wǎng)站建設(shè)、做網(wǎng)站、移動網(wǎng)站開發(fā)等業(yè)務(wù)。幫助企業(yè)客戶真正實現(xiàn)互聯(lián)網(wǎng)宣傳,提高企業(yè)的競爭能力。成都創(chuàng)新互聯(lián)公司是一支青春激揚、勤奮敬業(yè)、活力青春激揚、勤奮敬業(yè)、活力澎湃、和諧高效的團隊。公司秉承以“開放、自由、嚴(yán)謹(jǐn)、自律”為核心的企業(yè)文化,感謝他們對我們的高要求,感謝他們從不同領(lǐng)域給我們帶來的挑戰(zhàn),讓我們激情的團隊有機會用頭腦與智慧不斷的給客戶帶來驚喜。成都創(chuàng)新互聯(lián)公司推出蒸湘免費做網(wǎng)站回饋大家。
這就會直接導(dǎo)致雙機軟件的兩臺機器中都會有相同的IP地址存在(virbr0網(wǎng)卡的IP地址都為192.168.122.1)。所以會導(dǎo)致雙機系統(tǒng)中的主機關(guān)機時,備機不會接管的現(xiàn)象。所以,需要將virbr0卸載掉:
執(zhí)行命令:yum remove -y libvirt*,用ifconfig -a查看網(wǎng)卡virbr0是否卸載。
如果執(zhí)行yum報錯, 可以vi /etc/yum/plugincon.d/rhnplugin.conf然后將文件中的enable=1改成enable=0,目的是先禁用此功能,再執(zhí)行yum remove libvirt進行卸載。
重啟系統(tǒng)
yum remove NetworkManager –y
設(shè)置關(guān)閉圖形化界面(安裝圖形化界面,是為了可以應(yīng)用eclipse,一般應(yīng)用服務(wù)器不會選擇安裝圖形化)
systemctl set-default multi-user.target
chkconfig nfs off chkconfig pcmcia off chkconfig lpd off chkconfig autofs off chkconfig anacron off chkconfig portmap off chkconfig isdn off chkconfig nfslock off chkconfig sendmail off chkconfig cups off chkconfig smartd off chkconfig bluetooth off chkconfig netfs off chkconfig rpcgssd off chkconfig rpcidmapd off chkconfig rpcbind off chkconfig pcscd off chkconfig smolt off chkconfig cups off chkconfig isdn off chkconfig ip6tables off systemctl disable nfs systemctl disable pcmcia systemctl disable lpd systemctl disable autofs systemctl disable anacron systemctl disable portmap systemctl disable isdn systemctl disable nfslock systemctl disable sendmail systemctl disable cups systemctl disable smartd systemctl disable bluetooth systemctl disable netfs systemctl disable rpcgssd systemctl disable rpcidmapd systemctl disable rpcbind systemctl disable pcscd systemctl disable smolt systemctl disable cups systemctl disable isdn systemctl disable ip6tables systemctl disable firewalld
yum -y install gcc yum -y install gcc-c++ yum -y install net-snmp yum -y install ntp yum -y install unzip yum -y install vim-enhanced yum -y install wget yum -y install telnet yum -y install kernel-devel yum -y install finger yum -y install ssh yum -y install nslookup yum -y install zlib-devel yum -y install krb5-devel yum -y install sysstat yum -y install lsof yum -y install fuser yum -y install bind-utils yum -y install glances yum -y install dstat yum -y install net-tools yum -y install vim yum -y install wget