Redhat(03):Linux 初始化配置
发表于:2026-11-03 作者:千家信息网编辑
千家信息网最后更新 2026年11月03日,一、virbr0虚拟网卡的卸载方法在使用双机软件过程中,如果系统是centos 5.x 默认系统安装完成后为xen内核,那么xen内核引导启动后就会有虚拟网卡(vethx、vif0.x、virbr0、
千家信息网最后更新 2026年11月03日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 offchkconfig pcmcia offchkconfig lpd offchkconfig autofs offchkconfig anacron offchkconfig portmap offchkconfig isdn offchkconfig nfslock offchkconfig sendmail offchkconfig cups offchkconfig smartd offchkconfig bluetooth offchkconfig netfs offchkconfig rpcgssd offchkconfig rpcidmapd offchkconfig rpcbind offchkconfig pcscd offchkconfig smolt offchkconfig cups offchkconfig isdn offchkconfig ip6tables offsystemctl disable nfssystemctl disable pcmciasystemctl disable lpdsystemctl disable autofssystemctl disable anacronsystemctl disable portmapsystemctl disable isdnsystemctl disable nfslocksystemctl disable sendmailsystemctl disable cupssystemctl disable smartdsystemctl disable bluetoothsystemctl disable netfssystemctl disable rpcgssdsystemctl disable rpcidmapdsystemctl disable rpcbindsystemctl disable pcscdsystemctl disable smoltsystemctl disable cupssystemctl disable isdnsystemctl disable ip6tablessystemctl disable firewalld
四、常用包安装
yum -y install gccyum -y install gcc-c++yum -y install net-snmpyum -y install ntpyum -y install unzipyum -y install vim-enhancedyum -y install wgetyum -y install telnetyum -y install kernel-develyum -y install fingeryum -y install sshyum -y install nslookupyum -y install zlib-develyum -y install krb5-develyum -y install sysstatyum -y install lsofyum -y install fuseryum -y install bind-utilsyum -y install glancesyum -y install dstatyum -y install net-toolsyum -y install vimyum -y install wget
系统
网卡
图形
双机
内核
地址
界面
软件
应用
服务
相同
主机
功能
命令
常用
文件
方法
服务器
机器
现象
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
互联网和科技技术
互联网的科技
互联网核心科技是什么
互联网金融公司科技
中国互联网科技发展
菲比寻常互联网科技
火传媒上海互联网科技
天速互联网络科技有限公司
互联网科技实习生岗位职责
成都铂石互联网科技做什么的
互联网科技与管理
智腾互联网科技有限公司
广州市恰铎互联网科技有限公司
迪庆互联网科技招生
科技大学互联网
伍佰万互联网科技怎么赚钱
广东鹅鹅鹅互联网科技有限公司
广州梦谷互联网科技有限公司领导
昆明中奇联合互联网科技
广州智享互联网科技
为想互联网科技怎么样
以房互联网科技
科技互联网公司logo
美国互联网前沿科技
哈尔滨秒房互联网科技有限公司
深圳国际航运科技和互联网
互联网科技革命什么开始
中国互联网十大科技股排名
求路客互联网科技电话
如何强化互联网金融科技