In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article is about how to develop and implement owncloud to support ceph S3 as a primary storage function based on owncloud9.1.1. The editor thinks it is very practical, so I share it with you. I hope you can get something after reading this article. Let's take a look at it.
Owncloud object Storage deployment document
one。 Preface
Through the development of owncloud to support back-end S3 storage, in the deployment architecture, S3 storage can fully support the "Large Enterprises and Service Providers" required by owncloud deployment, and meet the use scale of large-scale cloud storage network disk in terms of function, performance, reliability, scalability, capacity and so on.
two。 Deployment method
This article takes "Small Workgroups or Departments" as an example to describe the deployment of stand-alone owncloud docking S3. Other deployment methods can refer to the ownclud admin manual. The deployment environment for this document uses Ubuntu14.04 x64.
1. Before installing owncloud, you first need support for Apache, MySQL/MariaDB, and PHP. Below, use MySQL as the database to install.
Sudo apt-get install apache2 mysql-server libapache2-mod-php5
Sudo apt-get install php5-gd php5-json php5-mysql php5-curl
Sudo apt-get install php5-intl php5-mcrypt php5-imagick
After the first line is installed and running, MySQL needs to configure the password of the root user.
two。 Install ownCloud, download the owncloud source package from my https://github.com/YangFanlinux/owncloud, and extract it to the / var/www directory. At this point, owncloud is installed.
3. Apache server configuration, switch to root user first
Su root
Cd / etc/apache2/sites-available/
Vim owncloud.conf
4. Copy the following text into the owncloud.conf configuration file.
Alias / owncloud "/ var/www/owncloud/"
Options + FollowSymLinks
AllowOverride All
Dav off
Satisfy Any
SetEnv HOME / var/www/owncloud
SetEnv HTTP_HOME / var/www/owncloud
# just in case if .htaccess gets disabled
Require all denied
5. Symlink the configuration file under / etc/apache2/sites-enabled.
Ln-s / etc/apache2/sites-available/owncloud.conf / etc/apache2/sites-enabled/owncloud.conf
6. After creating the file link, you can see that there is an additional owncloud.conf file in the / etc/apache2/sites-enabled/ folder, and the changes to this file are synchronized with the changes to the owncloud.conf file under / etc/apache2/sites-available/.
7. Next, it is optional, but it is recommended to set it.
A2enmod rewrite
A2enmod headers
A2enmod env
A2enmod dir
A2enmod mime
8. Restart Apache
Service apache2 restart
9. Turn on SSL
A2enmod ssl
A2ensite default-ssl
Service apache2 reload
10. OwnCloud configuration. First of all, give the HTTP user of the owncloud directory to you. The default is www-data.
Chown-R www-data:www-data / var/www/owncloud/
11. Next, use a browser to access the following address, where localhost uses the host private network IP instead. Note that do not create an administrator account and log in yet. Log in to the system only once so that the default configuration file is generated in the / var/www/owncloud/config/ directory.
Http://localhost/owncloud
twelve。 Modify the configuration file / var/www/owncloud/config/config.php. If you use the multibucket feature, you can refer to the configuration of config.multibucket.php. If you use a single bucket, you can refer to config-singbucket.php. Take multibucket as an example, add the following configuration to config.php:
'objectstore_multibucket'= > array (
'class' = >' OC\\ Files\\ ObjectStore\ CephS3'
'arguments' = > array (
'autocreate' = > true,// automatically creates bucket. Default is true.
'AWS = > '2006-03-01. The version number of 2006-03-01.
'region' = >'', / / connection AWS needs to be set, ceph S3 does not need to be set
'key' = >' E60Z7V7OW9Y1U8WFI9T3, / / key of S3 rgw
'secret' = >' yf', / / secret of S3 rgw
Access address of 'endpoint' = >' http://192.168.74.128:80/',//ceph S3
'PathStyle' = > true,// connection ceph is true,aws and false
'prefix' = >' neunnowncloud-',//multi-bucket needs to fill in the prefix of the generated bucket. Note that you need to refer to the S3 bucket naming convention.
The name of the bucket automatically generated by the system is prefix+hash, and the first three digits of the userid md5 value are taken as the hash value by default.
),
'integrity.check.disabled' = > true,// turns off the program integrity check function due to the secondary development of the code
'enable_previews' = > false,// file preview function has bug, temporarily disabled
13. After setting up, access http://localhost/owncloud, create an administrator and fill in the database information, you can log in, and all the deployment of owncloud is completed.
three。 About owncloud version upgrad
This development is based on the latest stable version of owncloud 9.1.1, and the source code has been changed and not incorporated into the owncloud mainline version, so subsequent upgrades do not support official automatic upgrades, so you need to manually merge the modified code to the new version of owncloud code.
The above is based on how owncloud9.1.1 develops and implements owncloud to support ceph S3 as a primary storage function. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.
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.