網(wǎng)絡(luò)配置
查看ip
- ipconfig
- ip addr
- vi /etc/sysconfig/network-scripts/ifcfg-xx
- yum install net-tools
配置網(wǎng)卡ip
vi /etc/sysconfig/network-scripts/ifcfg-xx
onboot = yes
service network restart
ip addr
(ifcfg-xx網(wǎng)卡已經(jīng)配置到了ip)
使用ifconfig
yum install net-tools
替換Linux默認(rèn)源
幫助文檔: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
下載對(duì)應(yīng)版本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