成都创新互联网站制作重庆分公司

Debian8下的radosgw安装与排错方法

本篇内容主要讲解“Debian8下的radosgw安装与排错方法”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“Debian8下的radosgw安装与排错方法”吧!

成都创新互联公司主营南皮网站建设的网络公司,主营网站建设方案,重庆APP软件开发,南皮h5成都小程序开发搭建,南皮网站营销推广欢迎南皮等地区企业咨询

#Debian8下的radosgw安装与排错

  • 软件版本信息

    • apache2.4.10

    • ceph version 0.94.3-228-g2b11a4c (2b11a4c07a9416a2f75c8ce62a923994977d799c)

    • Debian 8.2 64 bit(kernel:Debian 3.16.7-ckt11-1+deb8u3 (2015-08-04) x86_64)

具体安装过程请参考官方文档

关键的几个配置文件

cat /etc/ceph/ceph.conf
[global]
....

[client.rgw.demo]
host = demo
keyring = /etc/ceph/ceph.client.radosgw.demo.keyring
rgw socket path = /var/run/ceph/ceph-client.rgw.demo.asok
log file = /var/log/radosgw/client.radosgw.demo.log
rgw print continue = false
cat /etc/apache2/sites-available/rgw.conf


ServerName demo
DocumentRoot /var/www/html

ErrorLog /var/log/apache2/rgw_error.log
CustomLog /var/log/apache2/rgw_access.log combined

# LogLevel debug

RewriteEngine On

RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]

SetEnv proxy-nokeepalive 1

ProxyPass / unix:///var/run/ceph/ceph-client.rgw.demo.asok|fcgi://localhost:9000/ #这里注意对应前面ceph.conf里面asok文件的路径

注意官方文档漏掉要禁用默认site的操作,需要执行a2dissite 000-default,测试发现报500错误,具体内容如下

curl http://10.0.2.15 


500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at  [no address given] to inform them of the time this error occurred,  and the actions you performed just before this error.

More information about this error may be available in the server error log.


Apache/2.4.10 (Debian) Server at 10.0.2.15 Port 80
tail -f /var/log/apache2/rgw_error.log
[Thu Sep 17 13:51:49.877636 2015] [proxy:warn] [pid 13025:tid 140558455908096] [client 10.0.2.15:33708] AH01144: No protocol handler was valid for the URL /. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.
[Thu Sep 17 13:53:20.416251 2015] [proxy:warn] [pid 13026:tid 140558358009600] [client 10.0.2.15:33713] AH01144: No protocol handler was valid for the URL /. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.
[Thu Sep 17 13:54:40.455318 2015] [proxy:warn] [pid 13025:tid 140558316046080] [client 10.0.2.15:33714] AH01144: No protocol handler was valid for the URL /. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.
[Thu Sep 17 14:09:23.823843 2015] [proxy:warn] [pid 13993:tid 140035573221120] [client 10.0.2.15:33716] AH01144: No protocol handler was valid for the URL /. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.
[Thu Sep 17 14:13:52.140677 2015] [proxy:warn] [pid 14308:tid 139872356669184] [client 10.0.2.15:33718] AH01144: No protocol handler was valid for the URL /. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.

解决这个问题,需要开启几个关键模块再重启服务,官方文档坑还是比较多的。

a2enmod rewrite
a2enmod proxy
a2enmod proxy_fcgi
service apache2 restart

说明:官方文档对apache2的配置做了比较大的更新,2.4.9以前的版本直接使用fastcgi(mod_fastcgi),2.4.10以后使用的是Unix Domain Socket (UDS)转factcgi(mod proxy_fcgi)。

到此,相信大家对“Debian8下的radosgw安装与排错方法”有了更深的了解,不妨来实际操作一番吧!这里是创新互联网站,更多相关内容可以进入相关频道进行查询,关注我们,继续学习!


新闻名称:Debian8下的radosgw安装与排错方法
网站地址:http://cxhlcq.com/article/jepjjj.html

其他资讯

在线咨询

微信咨询

电话咨询

028-86922220(工作日)

18980820575(7×24)

提交需求

返回顶部