您好,登錄后才能下訂單哦!
本篇內(nèi)容主要講解“Debian8下的radosgw安裝與排錯(cuò)方法”,感興趣的朋友不妨來(lái)看看。本文介紹的方法操作簡(jiǎn)單快捷,實(shí)用性強(qiáng)。下面就讓小編來(lái)帶大家學(xué)習(xí)“Debian8下的radosgw安裝與排錯(cuò)方法”吧!
#Debian8下的radosgw安裝與排錯(cuò)
軟件版本信息
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)
具體安裝過(guò)程請(qǐng)參考官方文檔
關(guān)鍵的幾個(gè)配置文件
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 <VirtualHost *:80> 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/ #這里注意對(duì)應(yīng)前面ceph.conf里面asok文件的路徑 </VirtualHost>
注意官方文檔漏掉要禁用默認(rèn)site的操作,需要執(zhí)行a2dissite 000-default
,測(cè)試發(fā)現(xiàn)報(bào)500錯(cuò)誤,具體內(nèi)容如下
curl http://10.0.2.15 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>500 Internal Server Error</title> </head><body> <h2>Internal Server Error</h2> <p>The server encountered an internal error or misconfiguration and was unable to complete your request.</p> <p>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.</p> <p>More information about this error may be available in the server error log.</p> <hr> <address>Apache/2.4.10 (Debian) Server at 10.0.2.15 Port 80</address> </body></html>
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.
解決這個(gè)問(wèn)題,需要開啟幾個(gè)關(guān)鍵模塊再重啟服務(wù),官方文檔坑還是比較多的。
a2enmod rewrite a2enmod proxy a2enmod proxy_fcgi service apache2 restart
說(shuō)明:官方文檔對(duì)apache2的配置做了比較大的更新,2.4.9以前的版本直接使用fastcgi(mod_fastcgi),2.4.10以后使用的是Unix Domain Socket (UDS)轉(zhuǎn)factcgi(mod proxy_fcgi)。
到此,相信大家對(duì)“Debian8下的radosgw安裝與排錯(cuò)方法”有了更深的了解,不妨來(lái)實(shí)際操作一番吧!這里是億速云網(wǎng)站,更多相關(guān)內(nèi)容可以進(jìn)入相關(guān)頻道進(jìn)行查詢,關(guān)注我們,繼續(xù)學(xué)習(xí)!
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。