欢迎来到天天文库
浏览记录
ID:37713256
大小:18.82 KB
页数:8页
时间:2019-05-29
《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
此文档下载收益归作者所有