删除默认的源,国外的比较慢rm -rf /etc/yum.repos.d/*.repo下载阿里云的base源wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo下载阿里云的epel源wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo修改里面的系统版本为7.2.1511,当前用的centos的版本的的yum源可能已经清空了sed -i 's/$releasever/7.2.1511/g' /etc/yum.repos.d/CentOS-Base.repo添加ceph源vim /etc/yum.repos.d/ceph.repo添加 [ceph] name=ceph baseurl=http://download.ceph.com/rpm-hammer/el7/x86_64/ gpgcheck=0 [ceph-noarch] name=cephnoarch baseurl=http://download.ceph.com/rpm-hammer/el7/noarch/ gpgcheck=0 进行yum的makecacheyum makecache安装软件yum install ceph ceph-deploy(责任编辑:IT) |