In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces the use of CivetWeb instead of Apache as the front end of Ceph rgw services, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to know about it.
1. Source code compilation
Linking is the whole process of compiling ceph by source code, and finally make install.
Http://my.oschina.net/myspaceNUAA/blog/538894
two。 Profile Settin
Adjust / etc/ceph/ceph.conf and add a SECTION.
[client.radosgw.gateway] host = ceph-2log file = / var/log/radosgw/client.radosgw.gateway.logrgw_frontends = civetweb port=80keyring = / etc/ceph/ceph.client.radosgw.keyringrgw_socket_path = / var/run/ceph/ceph.radosgw.gateway.civetweb.sockdebug_rgw = 20
3. Start the RADOSGW service
Sudo usr/bin/radosgw-n client.radosgw.gateway-c / etc/ceph/ceph.conf-f-- log-to-stderr-- debug-rgw=20-- debug-ms=1
4. Status check
Through the netstat command, you can see that port 80 has been bound. A connection has also been established with other surveillance.
[root@gnop029-ct-zhejiang_wenzhou-16-12 src] # netstat-anp | grep radostcp 00 0.0.0.0 grep radostcp 80 0.0.0.0 grep radostcp * LISTEN 17873/lt-radosgw tcp 0 0101.71.4.12 grep radostcp 61742 101.71.4.28 0 0 101.71.4.12:51672 101.71.4.28:6812 ESTABLISHED 17873/lt-radosgw tcp 0 0 101.71.4.12:47469 101.71.4.29:6844 ESTABLISHED 17873/lt-radosgw tcp 0 0 101.71.4.12:56602 101.71.4.27:6804 ESTABLISHED 17873/lt-radosgw tcp 0 0 101.71.4.12:51666 101.71.4.29:6808 ESTABLISHED 17873/lt-radosgw tcp 0 0 101.71.4.12:44577 101.71.4.29:6804 ESTABLISHED 17873/lt-radosgw
5. Program verification
First create the user, get the key, and set it to the code
That is access_key secret_key
Import threadimport sysimport botoimport boto.s3.connectiondef isFileExist (filepath): return os.path.exists (filepath) # key used for accessaccess_key = 'J8ZN*AQSAZXN'secret_key =' 3rBM7nQ*qPlYJTX9xjfnp79jAeIMRQm'def showobjs (bucketname): conn = boto.connect_s3 (aws_access_key_id = access_key, aws_secret_access_key = secret_key Host = '101.71.4.12, is_secure=False, calling_format = boto.s3.connection.OrdinaryCallingFormat (),) bucket = conn.create_bucket (bucketname) I = 0 for key in bucket.list (): i=i+1 print "% d\ t% s% d\ n"% (I Key.name, key.size, key.last_modified) if _ _ name__=='__main__': bucketname = sys.argv [1] print "FILEPATH:% s"% (bucketname) showobjs (bucketname) Thank you for reading this article carefully I hope the article "using CivetWeb instead of Apache as the front end of Ceph rgw service" shared by the editor is helpful to everyone. At the same time, I also hope that you can support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.