In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to implement an one-click installation script for ceph radosgw. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.
In the ubuntu12.04.5 bit environment, often configure radosgw, so write a script to complete the radosgw one-click installation, does not include the ssl configuration, need to add their own. The ceph0.80.x test passed.
#! / bin/bashwget-Q-O-https://raw.github.com/ceph/ceph/master/keys/autobuild.asc | sudo apt-key add-echo deb http://gitbuilder.ceph.com/apache2-deb-$(lsb_release-sc)-x86_64-basic/ref/master $(lsb_release-sc) main | sudo tee / etc/apt/sources.list.d/ceph-apache.listecho deb http://gitbuilder.ceph.com/libapache-mod-fastcgi-deb- $(lsb_release-sc)-x86_64-basic/ref/master $(lsb_release-sc) main | sudo tee / etc/apt/sources.list.d/ceph-fastcgi.listHOSTNAME= `hostname`apt-get install apache2 libapache2-mod-fastcgi radosgw-yceph-authtool-- create-keyring / etc/ceph/ceph.client.radosgw.$HOSTNAME.keyringcd / etc/ceph/chmod + r ceph.client.radosgw.$HOATNAME.keyringceph-authtool / etc/ceph/ceph.client.radosgw.$HOSTNAME.keyring-n client.radosgw.$HOSTNAME-- Gen-keyceph-authtool-n client.radosgw.$HOSTNAME-- cap osd 'allow rwx'-- cap mon' allow rwx' / etc/ceph/ceph.client.radosgw.$HOSTNAME.keyringceph-k / etc/ceph/ceph.client.admin.keyring auth add client.radosgw.$HOSTNAME-I / etc/ceph/ceph.client.radosgw.$HOSTNAME.keyringecho-n "[client.radosgw.$HOSTNAME] host = $HOSTNAMEkeyring = / etc/ceph/ceph.client.radosgw.$HOSTNAME.keyringrgw socket path = / tmp/radosgw.socklog file = / var/log/ceph/radosgw.$HOSTNAME.logrgw dns name = $HOSTNAME "> > / etc/ceph/ceph.confecho-n" #! / bin/shexec / usr/bin/radosgw-c / etc/ceph/ceph.conf-n client.radosgw.$HOSTNAME "> / var/www/s3gw.fcgichmod + x / var/www/s3gw.fcgiecho-n" FastCgiExternalServer / var/www/s3gw.fcgi-socket / tmp/radosgw.sock ServerName $HOSTNAME DocumentRoot / var/www RewriteEngine On RewriteRule ^ / (. *) / s3gw.fcgification% {QUERY_STRING} [EpistHTTTTHORIZATION ghetto% {HTTP:Authorization} L] Options + ExecCGI AllowOverride All SetHandler fastcgi-script Order allow Deny Allow from all AuthBasicAuthoritative Off AllowEncodedSlashes On ErrorLog / var/log/apache2/error.log CustomLog / var/log/apache2/access.log combined ServerSignature Off "> / etc/apache2/sites-available/rgw.confecho" ServerName $HOSTNAME "> > / etc/apache2/apache2.confsudo a2enmod rewritesudo a2enmod fastcgia2ensite rgw.confa2dissite defaultservice ceph restartservice apache2 restart/etc/init.d / radosgw start's article on "how to implement an one-click installation script for ceph radosgw" ends here Hope that the above content can be helpful to you, so that you can learn more knowledge, if you think the article is good, please share it for more people to see.
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.