最小安装完竟然不能联网?找到网络配置方法:命令行下
ifconfig eth0 192.168.137.117 netmask 255.255.255.0 route add default gw 192.168.137.1 echo "nameserver 218.104.111.114" > /etc/resolv.conf
上面这种方法也太笨了,直接改
vi /etc/sysconfig/network-scrip/ifcfg-eth0
把ONBOOT改成yes就行了
安装wget
yum install wget
更改为163源
cd /etc/yum.repos.d mv CentOS-Base.repo CentOS-Base.repo.backup wget http://mirrors.163.com/.help/CentOS6-Base-163.repo yum clean all yum install makecache
makecache出错的话重试一两遍……
刚又超时了,怒……然后发现原来是舍友把网断了
安装ssh……
咦,竟然说已经安装过了……
那么安装开发工具吧
yum groupinstall "Development Libraries" "Development Tools"