Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Detailed explanation of the tutorial on building nextcloud private cloud storage network disk

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Nextcloud is an open source and free private cloud storage network disk project, which allows you to quickly and easily build a cloud synchronization network disk of your own or your team, thus achieving cross-platform and cross-device file synchronization, sharing, version control, team collaboration and other functions. Its client covers Windows, Mac, Android, iOS, Linux and other platforms, as well as web and WebDAV interfaces, so you can easily access your cloud disk on almost all kinds of devices.

Brief introduction:

When building personal cloud storage, you will generally think of ownCloud, which is a classic of self-built cloud storage service. And Nextcloud is the so-called "next generation" storage created by the original development team of ownCloud.

After the real trial, I sincerely agree with this Nextcloud: it is the perfect choice for personal cloud storage services. At first, I thought Nextcloud was just a cloud storage on a network disk, but later I saw

Nextcloud has built-in Office documents, photo albums, calendar contacts, two-step verification, file management, RSS reading and other rich applications, I found that Nextcloud has only been able to

It can be used for personal or team storage and sharing, and can also be built into a personal office platform, which is almost equivalent to a personal Dropbox. The running environment of Nextcloud is the same as that of us.

The commonly used programs are similar, LAMP is the official first choice, but LNMP can still run, but you need to write your own URL rewriting rules. Of course, the official also provides one-click installation package for SNAP.

Note: the above comes from somewhere on the Internet, focusing on the following installation

This article uses rpm source code installation, my personal test is valid, online or one-click installation is not difficult, please do your own Baidu

1. Install the LAMP schema:

Note: in order to avoid permissions, network problems, etc., please log in with root users or higher-level accounts.

Yum install-y httpd php php-mysql mariadb-server mariadb sqlite php-dom php-mbstring php-gd php-pdo

Note:

Httpd # apache web server; php # php

Mariadb-server mariadb

Starting from the centos 7 system, the mysql database that comes with the system is renamed to mariadb-server.

Pdo # (php data object) is a lightweight PHP data connection extension with compatible interfaces

two。 Turn off the firewall and selinux:

In Vim / etc/seliunux/config

Change Enforcing to disabled, and restart after modification will take effect. Enter the command getenforce to view the status.

The firewalld firewall can be turned off permanently for experimental purposes.

Systemctl disable firewalld.service

Temporarily close systemctl stop firewalld.service

Lptables-F

3. Enable LAMP related services:

Systemctl start httpd.serviceSystemctl start mariadb.service

4. Upload nextcloud source code package:

I am connected to xshell, so enter the rz command and select nextcloud-13.0.6.zip (nextcloud's compressed private package or online search) to upload (currently the latest 14)

Decompress: unzip nextcloud-13.0.6.zip

Under the root directory: cp-r nextcloud/* / var/www/html/

Note: copy what is under nextcloud to the root of the website, so it is nextcloud/*, instead of cp-r nextcloud/ var/www/html

(not paying attention here, resulting in failure of the installation several times, "details determine success or failure")

Change the owner and group of the website to apache: chown-R apache:apache / var/www/html

5. Set the database password and create the nextcloud database:

Change password: mysqladmin-u root password "123456"

Login: mysql-u root-p123456

After entering the database, create the database:

Create database nextcloud; (the database name can be changed at will, as long as you store nextcloud)

6. Access nextcloud through the web interface:

Real browser access: http://192.68.27.101/index.php

Note: Nextcloud 14 must require PHP 7

7. Update PHP5.4.16 to 5.6:

Check the current PHP version: php-v

Install the RPM upgrade package

Note: different versions use different commands, because I installed the centos7 series, so choose the first two commands to execute

Centos/redhat 7:

Rpm-Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm

Rpm-Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

Centos/redhat 6:

Rpm-Uvh https://mirror.webtatic.com/yum/el6/latest.rpm

Centos/redhat 5:

Rpm-Uvh http://mirror.webtatic.com/yum/el5/latest.rpm

Stop httpd after installation and then uninstall the old version of php

Systemctl stop httpd.service yum remove php-common

Start installing php5.6

Yum install-y php56w php56w-opcache php56w-xml php56w-devel php56w-mcrypt php56w-gd php56w-mysql php56w-intl php56w-mbstring

Start aptech after installation is complete

Systemctl start httpd.service

Check the php version again and find that it has been upgraded to PHP5.6

8.web interface after installing nextcloud and restarting httpd, open the browser again to access

Set login password and select relevant settings for mariadb database

The default is SQLite database. Click on mariaDB database here and enter your account number, password and table name.

Note: SQLite is also a kind of database

Sqlite is a lightweight database, an ACID-compliant relational database management system, contained in a relatively small c library.

It is a public domain project established by D.RichardHipp. The design goal is embedded, and it is already in many embedded products.

Using it, one of the characteristics is that the occupation of resources is very low, in embedded devices, only a few hundred kilos of memory may be enough.

Click install to install.

After entering, I found that it is very similar to Baidu's online disk, which can be uploaded, downloaded, shared, and can be explored if it has functions.

Upload data on web browser

Enter IP directly into the browser. This is 192.68.27.101. Enter the account password and enter it.

9. Install the plug-in:

For example, find Files Right Click in Settings-apply-files and enable it (if it cannot be enabled, it is generally related to slow network)

You can also install other plug-ins to enrich the functionality of nextcloud

There are cpu load monitoring, memory usage, user activity and other real-time monitoring.

Note: the speed of installation and use is related to your network and configuration, please wait patiently.

My environment: Windows10 real machine (WiFi), vm12 virtual machine (network card bridging), centos7 virtual machine, xshell remote connection software

Windows10 should be interconnected with centos7, and both should be able to connect to the Internet.

Win10's ip:192.68.27.133,centos7 's IP:192.68.27.101.

Production: OneNote

Since then, it has been successfully built.

Summary

The above is the detailed explanation of the tutorial on building nextcloud private cloud storage network disk introduced by the editor. I hope it will be helpful to you. If you have any questions, please leave me a message and the editor will reply to you in time. Thank you very much for your support to the website!

If you think this article is helpful to you, you are welcome to reprint it, please indicate the source, thank you!

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report