歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux綜合 >> 學習Linux

centos7.1手動安裝ceph

centos7.1手動安裝ceph


熱度4 評論 73 www.BkJia.Com  網友分享於:  2017-02-10 07:02:21     浏覽數44228次

centos7.1手動安裝ceph


1.准備環境
centos7.1主機一台
更新yum源

[root@cgsl ]# yum -y update

2.安裝密鑰 把密鑰加入你系統的可信密鑰列表內,以消除安全告警。

[root@cgsl ]# sudo rpm --import 'https://download.ceph.com/keys/release.asc'

3.獲取RPM 二進制包 你需要在 /etc/yum.repos.d/ 目錄下新增一個 Ceph 庫:創建 ceph.repo 。 些 Ceph 包(如 EPEL )必須優先於標准包,所以你必須確保設置了 priority=2 。

[root@cgsl ]# vim /etc/yum.repos.d/ceph.repo
[ceph]name=Ceph packages for $basearchbaseurl=http://download.ceph.com/rpm-jewel/el7/$basearchenabled=1priority=2gpgcheck=1type=rpm-mdgpgkey=https://download.ceph.com/keys/release.asc[ceph-noarch]name=Ceph noarch packagesbaseurl=http://download.ceph.com/rpm-jewel/el7/noarchenabled=1priority=2gpgcheck=1type=rpm-mdgpgkey=https://download.ceph.com/keys/release.asc[ceph-source]name=Ceph source packagesbaseurl=http://download.ceph.com/rpm-jewel/el7/SRPMSenabled=0priority=2gpgcheck=1type=rpm-mdgpgkey=https://download.ceph.com/keys/release.asc[apache2-ceph-noarch]name=Apache noarch packages for Cephbaseurl=http://gitbuilder.ceph.com/ceph-rpm-centos7-x86_64-basic/ref/master/SRPMS#baseurl=http://gitbuilder.ceph.com/ceph-rpm-centos7-x86_64-basic/ref/masterenabled=1priority=2gpgcheck=1type=rpm-mdgpgkey=https://download.ceph.com/keys/autobuild.asc[apache2-ceph-source]name=Apache source packages for Cephbaseurl=http://gitbuilder.ceph.com/ceph-rpm-centos7-x86_64-basic/ref/master/SRPMS#baseurl=http://gitbuilder.ceph.com/ceph-rpm-centos7-x86_64-basic/ref/masterenabled=0priority=2gpgcheck=1type=rpm-mdgpgkey=https://download.ceph.com/keys/autobuild.asc

4.下載軟件包 Ceph 依賴一些第三方庫。執行下列命令添加 EPEL 庫:

[root@cgsl ]# su -c 'rpm -Uvh http://download.ceph.com/rpm-jewel/el7/noarch/ceph-release-1-1.el7.noarch.rpm '[root@cgsl ]# su -c 'rpm -Uvh https://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-9.noarch.rpm '

5.安裝 yum-plugin-priorities 。

[root@cgsl ]# yum install yum-plugin-priorities

6.確認 /etc/yum/pluginconf.d/priorities.conf 文件存在。

[root@cgsl ]# vim /etc/yum/pluginconf.d/priorities.conf
[main]enabled = 1

7.安裝依賴的的軟件包:

[root@cgsl ]# yum install snappy leveldb gdisk python-argparse gperftools-libs

8.安裝ceph

[root@cgsl ]# yum install ceph

http://www.bkjia.com/Linuxjc/1191999.html TechArticle

Copyright © Linux教程網 All Rights Reserved