Redhat(03):Linux 初始化配置
一、virbr0虛擬網路卡的解除安裝方法
在使用雙機軟體過程中,如果系統是centos 5.x 預設系統安裝完成後為xen核心,那麼xen核心引導啟動後就會有虛擬網路卡(vethx、vif0.x、virbr0、xenbr1等)存在。
這就會直接導致雙機軟體的兩臺機器中都會有相同的IP地址存在(virbr0網路卡的IP地址都為192.168.122.1)。所以會導致雙機系統中的主機關機時,備機不會接管的現象。所以,需要將virbr0解除安裝掉:
-
執行命令:yum remove -y libvirt*,用ifconfig -a檢視網路卡virbr0是否解除安裝。
-
如果執行yum報錯, 可以vi /etc/yum/plugincon.d/rhnplugin.conf然後將檔案中的enable=1改成enable=0,目的是先禁用此功能,再執行yum remove libvirt進行解除安裝。
-
重啟系統
二、解除安裝network manager
-
yum remove NetworkManager –y
-
設定關閉圖形化介面(安裝圖形化介面,是為了可以應用eclipse,一般應用伺服器不會選擇安裝圖形化)
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
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/31490526/viewspace-2583101/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Linux RedHat ftp配置LinuxRedhatFTP
- Redhat linux DNS配置指南RedhatLinuxDNS
- linux redhat 6.5 多路徑配置LinuxRedhat
- redhat linux 6.2 安裝配置GUIRedhatLinuxGUI
- Redhat Linux網路卡配置與繫結RedhatLinux
- RedHat Linux Enterprise 5.4 yum 配置RedhatLinux
- Redhat Linux網路卡配置與繫結(zt)RedhatLinux
- RedHat配置IPRedhat
- Redhat Linux bind round-robin配置的探討RedhatLinux
- redhat linux9.0 telnet的配置說明RedhatLinux
- Redhat(02):yum 配置Redhat
- redhat 6.2 配置 zabbixRedhat
- redhat網路配置Redhat
- redhat 6.0配置yumRedhat
- redhat linux 5 之配置YUM源並安裝包RedhatLinux
- RedHat Linux下防火牆配置入門必學(轉)RedhatLinux防火牆
- Redhat linux AS4 環境下iSCSI協議配置RedhatLinux協議
- linux redhat as 4和linux redhat as 5下配置裸裝置自動啟動的屬性不同點LinuxRedhat
- REDHAT5.1 cluster配置Redhat
- redhat4 配置xmanagerRedhat
- linux基礎——在redhat6下配置yum源的使用LinuxRedhat
- Redhat 簡單本地yum 配置Redhat
- redhat6.2配置本地yumRedhat
- redhat 5 dns配置示例一RedhatDNS
- RedHat AS3配置 OpenLDAP(轉)RedhatS3LDA
- redhat6.6的xmanager配置Redhat
- REDHAT 7.1 sendmail配置FAQ (轉)RedhatAI
- RedHat 系統配置命令(轉)Redhat
- Linux + OS RedHat AS 5LinuxRedhat
- Redhat Linux 新增硬碟RedhatLinux硬碟
- linux主機-初始化參考配置模板 V4.0Linux
- redhat 5.5 配置網路yum源Redhat
- RedHat8 配置本地yum源Redhat
- RedHat6.2簡單配置dhcpRedhat
- redhat network網路卡配置示例Redhat
- redhat 5.5 配置 mysql AB複製RedhatMySql
- redhat as 4配置ISCSI共享儲存Redhat
- oracle redhat 下cluster 配置管理OracleRedhat