配置ip/etc/sysconfig/network-scripts/ifcfg-eth0(eth0表示第一块网卡)。
DEVICE=eth0 //网卡代号,与ifcfg-eth0对应
TYPE=Ethernet //设备类型
ONBOOT=yes //是否启动设备,改为no则此设备不启动
NM_CONTROLLED=no//是否启动NetworkManager服务,为了试验方便,我们一般将其关闭
BOOTPROTO=none //IP的获取方式,改为DHCP则会自动获取
IPIPADDR=192.168.0.103 //静态IP地址
PREFIX=255.255.255.0 //子网掩码
GATEWAY=192.168.0.1 //默认网关
DNS1=114.114.114.114 //DNS地址
DEFROUTE=yes //
IPV6INIT=no //是否启动IPV6,我们将其关闭
NAME="System eth0" //设备名
ARPCHECK=no //检查
USERCTL=no
关闭NetworkManager[root@zabbix_server ~]# service NetworkManager restart
或
[root@zabbix_server ~]# /etc/init.d/NetworkManager stop
开机不启动
[root@zabbix_server ~]# chkconfigNetworkManager off
关闭selinux iptables[root@zabbix_server ~]# vi /etc/selinux/config
SELINUX=disabled
[root@zabbix_server ~]# service iptables stop
[root@zabbix_server ~]# chkconfig iptables off
更换yum 源[root@zabbix_server ~]# cd /etc/yum.repos.d/
[root@zabbix_server yum.repos.d]# yum -y install wget
[root@zabbix_server yum.repos.d]# wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
[root@zabbix_server yum.repos.d]# mv CentOS-Base.repo CentOS-Base.repo.bak
[root@zabbix_server yum.repos.d]# mv CentOS6-Base-163.repo CentOS-Base.repo
[root@zabbix_server yum.repos.d]# yum clean all
[root@zabbix_server yum.repos.d]# yum makecache
[root@zabbix_server yum.repos.d]# rpm -Uvh http://mirrors.ustc.edu.cn/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
[root@zabbix_server yum.repos.d]# rpm -ivh http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/zabbix-release-2.4-1.el6.noarch.rpm
推荐IT资料搜索引擎 网盘搜索引擎 http://www.yunpanos.com
技术博客 http://www.021soso.com