在使用雙機(jī)軟件過程中,如果系統(tǒng)是centos 5.x 默認(rèn)系統(tǒng)安裝完成后為xen內(nèi)核,那么xen內(nèi)核引導(dǎo)啟動(dòng)后就會(huì)有虛擬網(wǎng)卡(vethx、vif0.x、virbr0、xenbr1等)存在。
我們提供的服務(wù)有:網(wǎng)站建設(shè)、成都網(wǎng)站制作、微信公眾號(hào)開發(fā)、網(wǎng)站優(yōu)化、網(wǎng)站認(rèn)證、安仁ssl等。為上千多家企事業(yè)單位解決了網(wǎng)站和推廣的問題。提供周到的售前咨詢和貼心的售后服務(wù),是有科學(xué)管理、有技術(shù)的安仁網(wǎng)站制作公司這就會(huì)直接導(dǎo)致雙機(jī)軟件的兩臺(tái)機(jī)器中都會(huì)有相同的IP地址存在(virbr0網(wǎng)卡的IP地址都為192.168.122.1)。所以會(huì)導(dǎo)致雙機(jī)系統(tǒng)中的主機(jī)關(guān)機(jī)時(shí),備機(jī)不會(huì)接管的現(xiàn)象。所以,需要將virbr0卸載掉:
執(zhí)行命令:yum remove -y libvirt*,用ifconfig -a查看網(wǎng)卡virbr0是否卸載。
如果執(zhí)行yum報(bào)錯(cuò), 可以vi /etc/yum/plugincon.d/rhnplugin.conf然后將文件中的enable=1改成enable=0,目的是先禁用此功能,再執(zhí)行yum remove libvirt進(jìn)行卸載。
重啟系統(tǒng)
yum remove NetworkManager –y
設(shè)置關(guān)閉圖形化界面(安裝圖形化界面,是為了可以應(yīng)用eclipse,一般應(yīng)用服務(wù)器不會(huì)選擇安裝圖形化)
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