第一章:准备工作


网络配置

查看ip

  • ipconfig
  • ip addr
  • vi /etc/sysconfig/network-scripts/ifcfg-xx
  • yum install net-tools

配置网卡ip

vi /etc/sysconfig/network-scripts/ifcfg-xx
onboot = yes

service network restart

ip addr
(ifcfg-xx网卡已经配置到了ip)

使用ifconfig

yum install net-tools


替换Linux默认源

帮助文档:http://mirrors.163.com/.help/centos.html

备份/etc/yum.repos.d/CentOS-Base.repo

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

下载对应版本repo文件,放在/etc/yum.repos.d/文件夹下

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

生成缓存

yum clean all
yum makecache


安装vim

yum install vim


你可能感兴趣的:(第一章:准备工作)