In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article introduces the "Cloudreve self-built cloud disk method tutorial" related knowledge, in the actual case operation process, many people will encounter such a dilemma, and then let the editor lead you to learn how to deal with these situations! I hope you can read it carefully and be able to achieve something!
I. Preface
Why to use self-built network disk, the cloud disk on the market is not fragrant?
Behind every user requirement is the existence of scenarios, and these differentiated scenarios are also caused by different types of users.
Just like I, as the master of the technology account, want to share some information summarized by myself. After putting it on some cloud disks, I will sometimes be reported by other friends who do not know where to come from. The report link will be cancelled, and canceling the link will affect my data sharing. At the same time, I may also hope that my shared content can be recorded to the number of downloads, allow several downloads, whether to do some drainage actions when downloading, and so on.
So in special situations like this, you need to build your own network disk to maintain the information you need. Similarly, some companies or organizations will build relatively private domain network disk service functions for internal users to use.
Therefore, it is not necessarily that the online disk in the market is not fragrant, just because I need to build my own online disk. I have tried self-built, kodexplorer, Owncloud and so on along the way, and I happened to find that Cloudreve feels better and supports more features after trying it. So I am ready to share with my friends about the installation, configuration and use of Cloudreve, so that those in need can have a taste.
II. Introduction to Cloudreve
Cloudreve helps you quickly build a public and private network disk system at the lowest cost.
? Function
✨ characteristics
☁️ supports local, slave, Qiniu, Aliyun OSS, Tencent Cloud COS, Zaiyun Cloud, and OneDrive (including Century Internet Edition) as storage terminals. Upload / download support client direct transmission, support download speed limit? Can be downloaded offline with docking Aria2? Online compression / decompression, multi-file packaging and download? The WebDAV protocol, which covers all storage policies, supports ⚡ drag upload, directory upload, streaming upload processing, ️file drag management, , etc. Multi-user, user group? Create sharing links for files and directories, which can be set to automatically expire? ️? ️video, image, audio, text, Office document online preview? Custom color matching, dark mode, PWA application, site-wide single-page application? All-In-One is packed and used out of the box. Official website: https://cloudreve.org documents: https://docs.cloudreve.org/getting-started/install Community: https://forum.cloudreve.org Source: https://github.com/cloudreve/Cloudreve Demo: https://demo.cloudreve.org III, Environment preparation
For CVM resources or local servers, Tencent Cloud lightweight servers with pagoda components are recommended, which is the simplest of several cloud services: domain names that have been documented by https://console.cloud.tencent.com/lighthouse/instance/index. If you do not need domain name access, you can directly use the public network IPCloudreve installation package provided by the cloud service: https://github.com/cloudreve/Cloudreve/releases
The case in this chapter is based on Tencent Cloud. If you are using another CVM, you can find the corresponding location configuration. The usage of these cloud services is basically the same. If you have any problems, you can contact the corresponding cloud service customer service. Do not contact me.
IV. Pagoda configuration
Pagoda is a simple and easy to use Linux/Windows server operation and maintenance management panel, in the pagoda background page can be very convenient security software and configuration environment. Generally speaking, pagodas can be installed on cloud servers, and some manufacturers have integrated pagodas into their own cloud servers.
1. Get user name and password
Address: the application management of https://console.cloud.tencent.com/lighthouse/instance/detail?rid=8&id=lhins-90pixwzq&tab=application entering the service will see the software information in the application: pagoda. When you click the login button here, you will get the login address, user name and password information of the pagoda. "these information can be modified later in the pagoda background". * Socket connection established *
Last login: Sat Apr 10 09:33:50 2021 from 119.29.96.147
[lighthouse@VM-8-9-centos ~] $sudo / etc/init.d/bt default
=
BT-Panel default info!
=
Public network panel address: http://80.71.255.122:8888/cloudtencent
Private network panel address: http://10.0.8.9:8888/cloudtencent
* the following is only the initial default account password. If you cannot log in, please execute the bt command to reset the account / password to log in.
Username: 3kkjecc3
Password: 3f7d2743018b
If you cannot access the panel
Release the following panel port [8888] in the security group
If you cannot access the panel, check that the firewall / security group has a release panel [8888] port.
=
2. 8888 port authorization cannot be accessed directly after obtaining the user name and password of the panel, because your port has not been authorized to open yet. At this time, on the cloud service platform, click the firewall configuration to add port 8888. 3. Log in to the pagoda backstage
Address: http://80.71.255.122:8888/cloudtencent-you need to change to your own address description: there will be some prompts and software installation when you enter the pagoda for the first time, just choose the installation you need. Page:
5. Service installation
There is a terminal menu in the left menu bar of the pagoda panel, click to enter is a black window, and then we will install the entire service here.
1. View the service kernel at the pagoda terminal
Because different cloud services may be based on adm or arm architecture, the downloaded Cloudreve may also have different cloudreve_ version number _ operating system _ CPU architecture .tar.gz, so here we need to use the arch command to check the service information.
Last failed login: Sat Apr 10 11:38:41 CST 2021 from 194.165.16.68 on ssh:notty
There were 8 failed login attempts since the last successful login.
Last login: Sat Apr 10 09:57:33 2021 from 127.0.0.1
[root@VM-8-9-centos ~] # arch
X86_64
X86: 64: for amd64aarch74: for arm642. Download and install
After determining our cloud service architecture, select the corresponding Cloudreve version and copy the address. Mine is: https://github.com/cloudreve/Cloudreve/releases/download/3.3.1/cloudreve_3.3.1_linux_amd64.tar.gz
Installation command
Mkdir / www/wwwroot/cloudreve # create a new folder storage program
Cd / www/wwwroot/cloudreve # enter this folder
Wget https://github.com/cloudreve/Cloudreve/releases/download/3.3.1/cloudreve_3.3.1_linux_amd64.tar.gz # download the link you copied
Tar-zxvf cloudreve_3.3.1_linux_amd64.tar.gz # decompresses the acquired main program
Chmod + x. / cloudreve # gives execution permission
. / cloudreve # launch Cloudreve
# interception of running information
[Info] 2021-04-10 10:39:59 initialize database connection
[Info] 2021-04-10 Database initialization begins at 10:39:59.
[Info] 2021-04-10 10:39:59 initial administrator account: admin@cloudreve.org
[Info] 2021-04-10 10:39:59 initial administrator password: U4BfStlm
[Info] 2021-04-10 10:40:00 Database initialization ends
[Info] 2021-04-10 initialize the task queue at 10:40:00, WorkerNum = 10
[Info] 2021-04-10 10:40:00 initialize scheduled tasks.
[Info] 2021-04-10 10:40:00 current operation mode: Master
[Info] 2021-04-10 starts monitoring at 10:40:00: 5212
Wget, replaced with your Cloudreve address tar, is replaced by the corresponding name and finally copies these commands to your terminal black window, and it starts to run the installation. After the installation is complete, you will get an initial user name and password, copy and paste and save 3. After the open port 5212Cloudreve installation is completed, the access address is your service IP:5212, but at this time 5212 cannot be accessed directly and authorization is required. Authorization only in the pagoda background is not enough, but also needs to be authorized in the firewall of the cloud service platform, as follows: 4. Login service address: http://80.71.255.122:5212
If all goes well, you can use your own network disk now, but one thing to know is that if you still need to set a domain name, do not use it at this time, set the domain name first, otherwise some pictures will be uploaded under the IP and uploaded under the domain name, and sharing will be problematic. VI. Process guardian
In fact, it can be used normally after the service is installed, but it is difficult for us to ensure that the pagoda panel will not be restarted or if there is an exception, we will inevitably have to restart the cloud disk service ourselves. In that case, a daemon is needed to automatically restart the service.
In the software store of the pagoda panel, find the Supervisor installation. Supervisor is a set of general process management program developed with Python, which can change an ordinary command line process into background daemon, monitor the status of the process, and restart automatically when an exception exits.
1. Supervisor configuration
Name: Cloudreve startup user: root default running directory: / www/wwwroot/cloudreve/ startup command: / www/wwwroot/cloudreve/cloudreve2. After Supervisor starts the configuration daemon process, click restart in the upper right corner of the pagoda panel. After entering the pagoda panel, restart the service and then enter the pagoda panel and you will see that the daemon process is already started. Now the startup is handed over to Supervisor management 7 and configuration domain 1. Before configuring a domain name, you need to configure an A record resolution under the domain name you have prepared, so that the reverse proxy can be configured later. two。 Reverse proxy
Click the site button in the left menu of the pagoda panel to add a site. The domain name in the site is the information when configuring and resolving the domain name. I need to set up a reverse proxy for this site after pan.itedus.cn has configured the site. Click on its settings to enter. Add and set the target URL:127.0.0.1:5212 in the reverse proxy. Finally, if your domain name has been resolved, you can now access your cloud disk service through the domain name, and upload and share files. VIII. Database switching
The default database of the system is the built-in SQLite. You can change it to Mysql, as follows:
Database type, currently supports sqlite | mysql Type = mysql username User = Cloudreve password Password = Cloudreve database address Host = 127.0.0.1 database name Name = Cloudreve datasheet prefix TablePrefix = cd_ reboot after switching, because it needs to recreate the account and password. If you do not see the account and password, you can delete the created database. This is the end of the "Cloudreve self-built cloud disk method tutorial" again. Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for 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.
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.