ubuntu 上安装ceph object radosgw.docx

  1. 1、本文档共9页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
ubuntu 上安装ceph object radosgw

ubuntu 上安装ceph object radosgw1、首先ubuntu服务器需要能够上网否则系统yum源不可用。步骤如下:安装apache2 fastcgi radosgw sudo apt-get -y install apache2 libapache2-mod-fastcgi radosgw openssl ssl-cert1、修改apache2配置文件 #vi /etc/apache2/apache2.conf 在最后一行上添加对象存储服务器的名称:ServerName hostname2、加载模块#sudo a2enmod proxy_fcgi#sudo a2enmod?rewrite#sudo a2enmond ssl3、启动apache服务#sudo service apache2 start如果提示错误:Could not reliably determine the servers fully qualified domain name 是因为/etc/apache2/apache2.conf 下的ServerName没有配置4、创建ssl密钥#sudo mkdir /etc/apache2/ssl#sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/apache2/ssl/apache.key -out /etc/apache2/ssl/apache.crt重启 apche:sudo service apache2 restartConfigure The Gateway 配置网关Create a User and Keyring1.Create a keyring for the gateway:sudo ceph-authtool --create-keyring /etc/ceph/ceph.client.radosgw.keyringsudo chmod +r /etc/ceph/ceph.client.radosgw.keyring2.Generate a Ceph Object Gateway user name and key for each instance. For exemplary purposes, we will use the name gateway after client.radosgw:sudo ceph-authtool /etc/ceph/ceph.client.radosgw.keyring -n client.radosgw.gateway --gen-key3.Add capabilities to the key. See Configuration Reference - Pools for details on the effect of write permissions for the monitor and creating pools.sudo ceph-authtool -n client.radosgw.gateway --cap osd allow rwx --cap mon allow rwx /etc/ceph/ceph.client.radosgw.keyring4.Once you have created a keyring and key to enable the Ceph Object Gateway with access to the Ceph Storage Cluster, add the key to your Ceph Storage Cluster. For example:sudo ceph -k /etc/ceph/ceph.client.admin.keyring auth add client.radosgw.gateway -i /etc/ceph/ceph.client.radosgw.keyring5.Distribute the keyring to the node with the gateway instance.sudo scp /etc/ceph/ceph.client.radosgw.keyring ceph@{hostname}:/etc/ceph/Create PoolsCeph Object Gateways require Ceph Storage Cluster pools to store specific gateway data. If the user you created has permissions, the gateway will create the

文档评论(0)

xcs88858 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:8130065136000003

1亿VIP精品文档

相关文档