yum安装ceph

配置yum源,epel源

注:EPEL (Extra Packages for Enterprise Linux)是基于Fedora的一个项目,为“红帽系”的操作系统提供额外的软件包,适用于RHEL、CentOS和Scientific Linux.

网址:阿里云官方镜像站

例如:我所使用的是Centos7,接下来给对应版本的linux下载yum源,epel源。


配置yum源

wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
1
建立缓存

yum makecache

配置epel源

 

wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
1
建立缓存,一般不会出错

yum makecache

配置Ceph源
在阿里云开源镜像站中找到Ceph

转到其下载网址

其中就是各版本的Ceph

例如,下载其中的rpm-15.2.2/版本的Ceph

选择el7,也就是Centos7版本。

将其中这两项的路径写入到Ceph源文件,其目录内就是具体的软件包

cat >>/etc/yum.repos.d/ceph.repo<< eof
[ceph] #路径为以上的x86_64目录
name=ceph
baseurl=https://mirrors.aliyun.com/ceph/rpm-15.2.2/el7/x86_64/
gpgcheck=0
enabled=1
[ceph-noarch] #路径为以上noarch目录
name=ceph-noarch
baseurl=https://mirrors.aliyun.com/ceph/rpm-15.2.2/el7/noarch/
gpgcheck=0
enabled=1
eof

安装Ceph及组件
安装epel-release及yum相关组件

yum -y install epel-release yum-plugin-priorities yum-utils

安装Ceph及相关组件

yum install -y ceph-deploy ceph ceph-radosgw snappy leveldb gdisk python-argparse gperftools-libs

查看ceph版本

ceph -v
ceph version 15.2.2 (0c857e985a29d90501a285f242ea9c008df49eb8) octopus (stable)

posted @ 2021-03-08 22:09  woaibaobei  阅读(574)  评论(0编辑  收藏  举报