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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Redhat(02):yum 配置Redhat
- Linux(01):RedHat 7.6 安裝LinuxRedhat
- redhat 5.5 配置網路yum源Redhat
- RedHat8 配置本地yum源Redhat
- redhat 7 使用nmcli 命令配置網路Redhat
- RedHat Linux口令恢復任我行RedhatLinux
- linux主機-初始化參考配置模板 V4.0Linux
- redhat7 配置檔案共享服務Redhat
- redhat linux核心資訊 warning:many lost ticksRedhatLinux
- SpringBoot(03)——自動配置Spring Boot
- Linux磁碟初始化Linux
- Linux8530_lab03Linux
- Sql Server Linux(Redhat) Distributed Availability Group Setup — step by stepSQLServerLinuxRedhatAI
- redhat enterprise linux中vsftp開機自啟動RedhatLinuxFTP
- Linux之RedHat7如何更換yum源LinuxRedhat
- mirai Bot初始化配置AI
- saltstack03的配置管理
- 03. Redis-配置檔案Redis
- Linux系統中Ubuntu和Redhat的差異有哪些?LinuxUbuntuRedhat
- 適合Linux系統初學的redhat系列有哪些?LinuxRedhat
- 【Spring】【03】解析配置類註冊BeanDefinationSpringBean
- RedHat Linux 6企業版開啟VNC Server遠端桌面RedhatLinuxVNCServer
- RedHat 7.2配置LAMP環境下的redius+mysql+openvpn環境RedhatLAMPMySql
- redhat安裝dockerRedhatDocker
- [重慶思莊每日技術分享]-Redhat Linux 6.5安裝ORACLE ASMLIBRedhatLinuxOracleASM
- Vmware linux redhat6.4 安裝11g(11.2.0.1) 雙節點RACLinuxRedhat
- redhat 7.x 、redhat 6.x檢視硬碟UUID方法Redhat硬碟UI
- ubuntu linux配置UbuntuLinux
- linux 配置hostnameLinux
- linux配置sftpLinuxFTP
- linux配置jdkLinuxJDK
- 11. Oracle for Linux安裝和配置——11.2. Linux安裝和配置——11.2.5. Linux配置OracleLinux
- linux Shell 命令列-03-array Shell 陣列Linux命令列陣列
- Element原始碼:專案初始化和webpack配置原始碼Web
- 在Linux(Redhat/CentOS)下安裝MySQL之yum(rpm)線上安裝方式LinuxRedhatCentOSMySql
- 在Linux(Redhat/CentOS)下安裝MySQL之yum(rpm)離線安裝方式LinuxRedhatCentOSMySql
- Redhat:檔案目錄管理Redhat
- 059、安裝配置flannel(2019-03-28 週四)