linux的开始

1 先配置IP

进行计入到/etc/sysconfig/network-scripts中找到为为ifcfg-eth0的一个 no 改为yes

cd /etc/syscofig/network-scripts
vi ifcfg-eth0

然后重启网络IP

/etc/init.d/network start

2 先装wget vim 

yum install -y wget vim

3 更新yum源

先备份你之前的yum源

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup  

进入yum源所在地

cd /etc/yum.repos.d/

下载你需要的yum源 

wget http://mirrors.163.com/.help/CentOS6-Base-163.repo  

 运行yum makecache生成缓存

yum makecache  

更新系统yum源

yum -y update 

 

posted on 2018-01-29 22:48  createtab  阅读(147)  评论(0)    收藏  举报