溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點(diǎn)擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

Redhat(03):Linux 初始化配置

發(fā)布時(shí)間:2020-08-06 17:05:40 來源:ITPUB博客 閱讀:174 作者:Ryan_Bai 欄目:建站服務(wù)器

一、virbr0虛擬網(wǎng)卡的卸載方法

在使用雙機(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等)存在。

這就會(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卸載掉:

  1. 執(zhí)行命令:yum remove -y libvirt*,用ifconfig -a查看網(wǎng)卡virbr0是否卸載。

  2. 如果執(zhí)行yum報(bào)錯(cuò), 可以vi /etc/yum/plugincon.d/rhnplugin.conf然后將文件中的enable=1改成enable=0,目的是先禁用此功能,再執(zhí)行yum remove libvirt進(jìn)行卸載。

  3. 重啟系統(tǒng)

二、卸載network manager

  1. yum remove NetworkManager –y

  2. 設(shè)置關(guān)閉圖形化界面(安裝圖形化界面,是為了可以應(yīng)用eclipse,一般應(yīng)用服務(wù)器不會(huì)選擇安裝圖形化)

    systemctl set-default multi-user.target

三、關(guān)閉不必要的服務(wù)

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

向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI