If our netizens use third-party online storage, they will surely find that in the last two years many online storage providers have successively closed and adjusted their membership policies, recently, many netizens are busy downloading and backing up and storing data. Previously, Mr. Lao Jiang also shared this article "How to choose a free cloud disk service (personal data network storage) , it is also mentioned that you can choose to replace other free online storage after the merchant is disabled. Such as Baidu Cloud Disk, nut cloud disk, OneDrive, DropBox, and iCloud.
If we really want to find resources for free online storage, there will certainly be no problem for more than a dozen or more. After all, there is no shortage of free resources for the Internet. However, it is not difficult to find that, with the shutdown and adjustment of the membership mechanism of these network disk service providers, we are really happy to use a relatively small number of free network disks. If we switch over and migrate, then we will continue the migration when we close and adjust it.
Mr. Lao Jiang personally suggested that VPS, servers, and other products do not have high resource costs. Can we choose to build our own private cloud disk storage, such as ownCloud, which is relatively mature, data synchronization on PCs and mobile terminals is basically the same as common third-party cloud disks. We can choose to use ownCloud to build our own cloud disk storage. Of course, if we are just simple to use, I suggest you choose a free product, and small files are not that important.
The code is as follows: |
|
PS, it is bound to have an impact on the website. Users of this type of use should use their own storage.
|
In front of the old Jiang, he grayed out a bunch of things, almost didn't stop the car, or directly cut into the question. The ownCloud program is similar to the CMS program on our website and supports common applications such as PHP + MySQL. It can be built as long as it is a PHP + MySQL website environment, such as virtual hosts, VPS, and servers, however, since we need to use our own independent and professional cloud disk storage, in this article, Chiang will deploy the LNMP website environment on the Linux VPS host, and then deploy the ownCloud private cloud disk storage (if the resources are not large, we can deploy virtual hosts outside China. However, even if there are no restrictions on virtual hosts, there are still restrictions if you exceed resources or use a large volume ).
1. Website environment deployment in Linux VPS
So far, it is not difficult to deploy the website environment on the Linux VPS host? You can use a panel, a one-click package, or compile and deploy it separately. Here, Lao Jiang uses the lnmp one-click package for deployment.
1. Preparation and one-click package
The code is as follows: |
|
Screen-S lnmp
Wget-c ftp://soft.vpser.net/lnmp/lnmp1.3.tar.gz & tar zxf lnmp1.3.tar.gz & cd lnmp1.3 &./install. sh lnmp
|
At present, the one-click lnmp package has reached version 1.3, and the old version of the system is CentOS6.
2. One-click lnmp package deployment settings
Directly look at the figure and configure the PHP + MySQL website Web environment according to the environment we need. Everything will be ready for use after installation.
3. Add sites and set databases
Here we need to first prepare which domain name to use to deploy the ownCloud private cloud disk storage, and then add it to the deployed VPS host. In fact, this is the same as when we build the site.
The code is as follows: |
|
Lnmp vhost add
|
Use this command to add a site. Follow the prompts below to add a domain name, deploy pseudo static state, and set database information.
Add site domain names as needed, and determine whether to activate logs.
You can add the database users required by ownCloud directly when adding a site, or you can set it in phpMyAdmin. Here I add it directly in the site to set database information. Record all these items and use them when installing them.
2. Deployment process of ownCloud Private Cloud Disk Storage
After we add the domain names configured in the environment and used to deploy ownCloud, we can download the latest program from the ownCloud official website to deploy it. This is the same principle as installing the CMS on the website.
1. ownCloud official website
The code is as follows: |
|
Official website: https://owncloud.org/
|
2. Download/decompress ownCloud
The code is as follows: |
|
Https://download.owncloud.org/community/owncloud-9.1.1.zip
|
OwnCloud is divided into free and Enterprise versions. Here we use the free version directly. We have already reached version 9.1.1. We can Download wget directly to the Directory of the current site and decompress it. After all, there are about 30 MB. (Zip decompression method
Unzip owncloud-9.1.1.zip)
3. ownCloud installation and setup
We are downloading, decompressing, moving to the root directory/or the desired directory, and then waiting for the domain name resolution to take effect, then use a browser to directly open our network disk installation URL.
Set the ownCloud administrator account and database information and install the agent. SQLite and MySQL/MariaDB databases can be used.
The code is as follows: |
|
PS: I encountered a problem here. The 404 error occurred when installing ownCloud in the LNMP environment. It seems that there is a problem in the default configuration of LNMP and the file needs to be modified. The problem has not been solved for a long time. If it is installed by default, we recommend that you change to another environment.
|
Third, ownCloud Private Cloud Disk Management
This is not to complete the progress of this article. It is no problem that Chiang Kai-Jiang is successfully installed on a virtual host for the moment. Then, log in according to the administrator username and password we set during installation.
We can also set the background interface to simplified Chinese. In fact, the management is similar to the common domestic cloud disks, which can save files and share them publicly. OwnCloud private cloud disk storage features multi-platform synchronization, such as computer clients and mobile apps.
Supports software configuration for desktop and mobile apps. You can configure your account to synchronize management. This is good.
IV. ownCloud private cloud disk storage usage summary
1. In terms of functions, ownCloud can meet the needs of most of our users and functions. The interface is similar to the commonly used third-party online storage, private storage, and public sharing.
2. The only dissatisfaction is that it was originally deployed in the LNMP environment, but the 404 error occurs. It should be configured separately in the conf configuration file and can be installed on the virtual host. Next time you have the opportunity to try again, or install it in another environment, such as another one-click package or compile your own environment.
3. There are still many open-source private cloud disk programs, but the ownCloud has relatively complete functions and the UI experience is still acceptable. If you need to deploy a private cloud disk on your own, you can use ownCloud.