centos7 通过yum 安装ceph
时间:2016-05-09 23:08 来源:linux.it.net.cn 作者:IT
删除默认的源,国外的比较慢
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的makecache
yum makecache
安装软件
yum install ceph ceph-deploy
(责任编辑:IT)
删除默认的源,国外的比较慢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) |