1、关闭防火墙    chkconfig iptables off
      关闭selinux   vi /etc/selinux/config 
   
2、配置yum源
   1)/etc/resolv.conf文件增加:
   nameserver 10.1.7.97
   nameserver 10.1.7.98   

   2)    curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.hikvision.com.cn/help/centos/6/CentOS-Base.repo 
             运行 yum clean all && yum makecache生成缓存

 

若是VM虚拟机安装系统,网络使用桥接模式:

CentOS系统安装配置

然后修改/etc/sysconfig/network-scripts/ifcfg-ens33文件中ONBOOT=yes

重启reboot   即可
 

相关文章: