CentOS 6.4最小安裝
最小安裝完竟然不能聯網?找到網絡配置方法:命令行下
www.2cto.com
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"