Actual deployment of private cloud network disk for Linux system

Time:2021-7-24

​​Owncloud is a file hosting service software, which is the cloud storage we usually use. However, it is to establish its own private cloud on its own host server, and owncloud uses AGPLv3 protocol to publish. This project is based on PHP and SQLite, mysql, Oracle or PostgreSQL databases, so it can run on all platforms

Actual deployment of private cloud network disk for Linux systemRhel7 deploy private cloud disk rhel7 deploy private cloud disk

Download the owncloud installation package

[[email protected] tools]# wget https://download.owncloud.org…

–2020-06-01 15:09:12– https://download.owncloud.org…

Parsing host download.owncloud.org (download. Owncloud. ORG)… 116.203.164.24, 2a01:4f8:1c0c: 8147::

Connecting to download.owncloud.org (download. Owncloud. ORG) | 116.203.164.24 |: 443… Connected.

HTTP request issued, waiting for response… 301 moved permanently

Location:https://attic.owncloud.org/co…[follow to new url]

–2020-06-01 15:09:18– https://attic.owncloud.org/co…

Parsing host attic. Owncloud. Org (attic. Owncloud. ORG)… 195.201.36.192, 2a01:4f8: C2C: 5c1d:: 1

Connecting attic.owncloud.org (attic. Owncloud. ORG) | 195.201.36.192 |: 443… Connected.

HTTP request issued, waiting for response… 200 OK

Length: 42123371 (40m) [application / zip]

Saving to: ‘owncloud-10.0.2. Zip’

100% [=============================================================================== >] 42123371 232KB / s, 3M 14s

2020-06-01 15:12:34 (212 KB / s) – saved “owncloud-10.0.2. Zip” [42123371 / 42123371])

[[email protected] tools]# ls

owncloud-10.0.2.zip

Install dependent package components

[[email protected] tools]# yum install -y httpd php php-mysql mariadb-server mariadb sqlite php-dom php-mbstring php-gd php-pdo wget vim

Combine owncloud package with ApacheUnzip owncloud to the Apache directory

[[email protected] tools]# unzip owncloud-10.0.2.zip -d /var/www/html/

to grant authorization

[[email protected] tools]# chown -R apache.apache /var/www/html/owncloud/

Set up databaseStart database and Apache

[[email protected] tools]# systemctl start mariadb 

[[email protected] tools]# systemctl start httpd

Turn off the firewall and selinux

[[email protected] tools]# setenforce 0 

[[email protected] tools]# systemctl stop firewalld

Create user and authorize

[[email protected] tools]# mysql

Welcome to the MariaDB monitor. Commands end with ; or g.

Your MariaDB connection id is 2

Server version: 5.5.56-MariaDB MariaDB Server

Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.

Type ‘help;’ or ‘h’ for help. Type ‘c’ to clear the current input statement.

MariaDB [(none)]> create database owncloud;

Query OK, 1 row affected (0.00 sec)

MariaDB [(none)]> create user ‘owncloud’@’localhost’ identified by ‘123456’;

Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]> grant all on owncloud.* to ‘owncloud’@’%’;

Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]> flush privileges;

Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]> quit

Bye

Sign in

Actual deployment of private cloud network disk for Linux systemRhel7 deploy private cloud disk rhel7 deploy private cloud disk

Fill in relevant database information

Actual deployment of private cloud network disk for Linux systemRhel7 deploy private cloud disk rhel7 deploy private cloud disk

Deployment complete

Actual deployment of private cloud network disk for Linux systemRhel7 deploy private cloud disk rhel7 deploy private cloud disk

test

Actual deployment of private cloud network disk for Linux systemRhel7 deploy private cloud disk rhel7 deploy private cloud disk

Actual deployment of private cloud network disk for Linux systemRhel7 deploy private cloud disk rhel7 deploy private cloud disk

Upload succeeded!