删除默认的源,国外的比较慢yum clean allrm -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 '/aliyuncs/d' /etc/yum.repos.d/CentOS-Base.reposed -i '/aliyuncs/d' /etc/yum.repos.d/epel.repo 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://mirrors.aliyun.com/ceph/rpm-jewel/el7/x86_64/ gpgcheck=0 [ceph-noarch] name=cephnoarch baseurl=http://mirrors.aliyun.com/ceph/rpm-jewel/el7/noarch/ gpgcheck=0 进行yum的makecacheyum makecache安装软件yum install ceph ceph-deploy (责任编辑:IT) |