ubuntu 上安装ceph object radosgw

ubuntu 上安装ceph object radosgw

ID:37713256

大小:18.82 KB

页数:8页

时间:2019-05-29

ubuntu 上安装ceph object radosgw_第1页
ubuntu 上安装ceph object radosgw_第2页
ubuntu 上安装ceph object radosgw_第3页
ubuntu 上安装ceph object radosgw_第4页
ubuntu 上安装ceph object radosgw_第5页
资源描述:

《ubuntu 上安装ceph object radosgw》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

1、ubuntu上安装cephobjectradosgw1、首先ubuntu服务器需要能够上网否则系统yum源不可用。步骤如下:安装apache2fastcgiradosgwsudoapt-get-yinstallapache2libapache2-mod-fastcgiradosgwopensslssl-cert1、修改apache2配置文件#vi/etc/apache2/apache2.conf在最后一行上添加对象存储服务器的名称:ServerNamehostname2、加载模块#sudoa2enmodproxy_fcgi#sudoa2enmod rewrite

2、#sudoa2enmondssl3、启动apache服务#sudoserviceapache2start如果提示错误:Couldnotreliablydeterminetheserver'sfullyqualifieddomainname是因为/etc/apache2/apache2.conf下的ServerName没有配置4、创建ssl密钥#sudomkdir/etc/apache2/ssl#sudoopensslreq-x509-nodes-days365-newkeyrsa:2048-keyout/etc/apache2/ssl/apache.key-ou

3、t/etc/apache2/ssl/apache.crt重启apche:sudoserviceapache2restartConfigureTheGateway配置网关CreateaUserandKeyring1.Createakeyringforthegateway:sudoceph-authtool--create-keyring/etc/ceph/ceph.client.radosgw.keyringsudochmod+r/etc/ceph/ceph.client.radosgw.keyring2.GenerateaCephObjectGatewayuse

4、rnameandkeyforeachinstance.Forexemplarypurposes,wewillusethenamegatewayafterclient.radosgw:sudoceph-authtool/etc/ceph/ceph.client.radosgw.keyring-nclient.radosgw.gateway--gen-key3.Addcapabilitiestothekey.SeeConfigurationReference-Poolsfordetailsontheeffectofwritepermissionsforthemoni

5、torandcreatingpools.sudoceph-authtool-nclient.radosgw.gateway--caposd'allowrwx'--capmon'allowrwx'/etc/ceph/ceph.client.radosgw.keyring4.OnceyouhavecreatedakeyringandkeytoenabletheCephObjectGatewaywithaccesstotheCephStorageCluster,addthekeytoyourCephStorageCluster.Forexample:sudoceph-

6、k/etc/ceph/ceph.client.admin.keyringauthaddclient.radosgw.gateway-i/etc/ceph/ceph.client.radosgw.keyring5.Distributethekeyringtothenodewiththegatewayinstance.sudoscp/etc/ceph/ceph.client.radosgw.keyringceph@{hostname}:/etc/ceph/CreatePoolsCephObjectGatewaysrequireCephStorageClusterpo

7、olstostorespecificgatewaydata.Iftheuseryoucreatedhaspermissions,thegatewaywillcreatethepoolsautomatically.However,youshouldensurethatyouhavesetanappropriatedefaultnumberofplacementgroupsperpoolintoyourCephconfigurationfile.NoteCephObjectGatewayshavemultiplepools,sodon’tmakethenumbero

8、fPGstoohighc

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。