HOSTNAME 在 /etc/hosts 里添加一行
127.0.0.1 yourhostname
yum配置
来自http://www.cnblogs.com/wutengbiao/p/4188986.html
下载方法1:
cd /etc/yum.repos.d/
wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
vi CentOS6-Base-163.repo
把文件里面的$releasever全部替换为版本号,即6 最后保存
方法2
Centos7:
wget -P /etc/yum.repos.d http://mirrors.163.com/.help/CentOS7-Base-163.repo
Centos6:
wget -P /etc/yum.repos.d http://mirrors.163.com/.help/CentOS6-Base-163.repo
Centos5:
wget -P /etc/yum.repos.d http://mirrors.163.com/.help/CentOS5-Base-163.repo
把文件里面的$releasever全部替换为版本号,即6 最后保存
然后
yum clean all
yum makecache
查看
yum repolist all
安装
yum provides */lsb_release
sudo yum install
yum install -y redhat-lsb
lsb查看
lsb_release -a