当前位置:网站首页>[technical grass planting] deploy a super large capacity and unlimited speed network disk in Tencent cloud
[technical grass planting] deploy a super large capacity and unlimited speed network disk in Tencent cloud
2022-06-24 00:59:00 【Little brother Fu】
author : Little brother Fu
Blog :https://bugstack.cn
precipitation 、 Share 、 grow up , Let yourself and others have something to gain !
One 、 Preface
Why do you want to build your own network disk in Tencent cloud , Not very popular in the market ?
Behind every user's needs is the existence of scenarios , And these differentiated scenarios are also due to different user types .
It's like I want to share some of my own information as a technology owner , After putting them on some cloud disks, they are sometimes reported by other small partners who don't know where they come from , The report link was canceled , 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 、 How many downloads are allowed 、 Do you want to do some drainage action when downloading .
So in a special scenario like this, you need to build your own network disk to maintain the data you need , Similarly, some companies or organizations will build a relatively private network disk service function , For internal users .
therefore , It's not necessarily that the network disk on the market is not good , Just because I need to build my own network disk . I've tried to build my own on this road 、kodexplorer、Owncloud etc. , It happened that recently Cloudreve It feels better after trying to experience , More features supported . So I'm going to share with my friends about Cloudreve Installation 、 Configure and use , Also let the little friends in need have a taste .
Two 、Cloudreve Introduce
Cloudreve, Help you quickly build a public-private network disk system with the lowest cost .
function
characteristic
- ️ Native support 、 Slave 、 Seven cattle 、 Alibaba cloud OSS、 Tencent cloud COS、 Cloud again 、OneDrive ( Including the Internet of the century ) As the storage side
- Upload / download Support client direct transmission , Support download speed limit
- It can be docked Aria2 Download offline
- On-line Compress / decompression 、 Multi file package download
- Coverage of all storage policies WebDAV Protocol support
- Drag and drop upload 、 Directory upload 、 Streaming upload processing
- ️ File drag Management
- Multi user 、 User group
- create a file 、 Sharing links to the directory , Automatic expiration can be set
- ️️ video 、 Images 、 Audio 、 Text 、Office Document preview online
- Custom colors 、 Dark mode 、PWA application 、 Single page application of the whole station
- All-In-One pack , Open the box
Information
- Official website :https://cloudreve.org
- file :https://docs.cloudreve.org/getting-started/install
- Community :https://forum.cloudreve.org
- Source code :https://github.com/cloudreve/Cloudreve
- demonstration :https://demo.cloudreve.org
3、 ... and 、 Environmental preparation
- Cloud server resources or local servers , Recommend Tencent cloud lightweight server , Contains pagoda components , It's the simplest of several cloud services :https://console.cloud.tencent.com/lighthouse/instance/index
- Registered domain names , If you don't need domain access , You can directly use the public network provided by cloud services IP
- Cloudreve Installation package :https://github.com/cloudreve/Cloudreve/releases
The case in this chapter is based on Tencent cloud , If you're using other cloud servers , Find the corresponding location configuration . The way these cloud services are used is basically the same , If you have problems, you can contact the corresponding cloud service customer service , Don't contact me. Hahaha
Four 、 Pagoda configuration
Pagoda is a simple and easy to use Linux/Windows Server operation and maintenance management panel , The security software and configuration environment can be very convenient on the background page of the pagoda . Generally, you can install pagodas on the cloud server , Some manufacturers have also integrated the pagoda into their own cloud servers .
1. Get user name and password
- Address :https://console.cloud.tencent.com/lighthouse/instance/detail?rid=8&id=lhins-90pixwzq&tab=application
- Enter the application management of the service and you will see
In application software information : pagoda, Click here Sign in After button , You will get the login address of the pagoda 、 User name and password information 「 This 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 [[email protected] ~]$ sudo /etc/init.d/bt default ================================================================== BT-Panel default info! ================================================================== Internet panel address : http://80.71.255.122:8888/cloudtencent Intranet 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 bt Order to reset the account / Password to login username: 3kkjecc3 password: 3f7d2743018b If you cannot access the panel, release the following panel port [8888] in the security group If you can't access the panel , Please check the firewall / Does the security group have a release panel [8888] port ==================================================================
2. 8888 Port authorization
- After getting the user name and password of the panel , Not directly accessible yet , Because your port is not authorized yet .
- At this time, on the cloud service platform , Click on
A firewallThis configuration , add to 8888 port .
3. Log in to the pagoda backstage
Address :http://80.71.255.122:8888/cloudtencent - You need to change to your address
explain : When you first enter the pagoda, there will be some tips and software installation , Choose the installation you need .
page :
5、 ... and 、 Service installation
There is a terminal menu in the menu bar on the left side of the pagoda panel , Click to enter is a black window , Next, we'll install the entire service here .
1. Check the service kernel on the pagoda terminal
Because different cloud services may be adm perhaps arm framework , Corresponding to the downloaded Cloudreve It will be different cloudreve_ Version number _ operating system _CPU framework .tar.gz, So here we need to use arch Command to view 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 [[email protected] ~]# arch x86_64
- x86_64: representative amd64
- aarch64: representative arm64
2. Download and install
After confirming our cloud service architecture , Select corresponding Cloudreve edition , Copy address . My 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 to hold the program cd /www/wwwroot/cloudreve # I'm gonna go into 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 # Decompress the main program chmod +x ./cloudreve # Grant execution permission ./cloudreve # start-up Cloudreve # Running information interception [Info] 2021-04-10 10:39:59 Initialize database connection [Info] 2021-04-10 10:39:59 Start database initialization ... [Info] 2021-04-10 10:39:59 Initial administrator account :[email protected] [Info] 2021-04-10 10:39:59 Initial administrator password :U4BfStlm [Info] 2021-04-10 10:40:00 End of database initialization [Info] 2021-04-10 10:40:00 Initialize task queue ,WorkerNum = 10 [Info] 2021-04-10 10:40:00 Initializes the timing task ... [Info] 2021-04-10 10:40:00 The current mode of operation :Master [Info] 2021-04-10 10:40:00 Start listening :5212
- wget, Replace it with yours Cloudreve Address
- tar, Is to replace the corresponding name together
- Finally, copy these commands to your terminal black window , It starts to run and install . After installation, you will get an initial user name and password , Copy and paste to save
3. Open ports 5212
- Cloudreve After installation , Visit the address for your service IP:5212, But this time 5212 You don't have direct access, you need Authorization .
- It's not enough just to authorize in the background of the pagoda , It 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, now you can use your own network disk , But one thing to know is that if you still need to set up a domain name , Then don't use it at this time , First set up the domain name , Otherwise, some pictures are IP Download and upload under the domain name , Sharing is problematic .
6、 ... and 、 Process daemons
In fact, after the service is installed, it can be used normally , But it's hard to guarantee that the pagoda panel won't be restarted or that we have to restart the cloud disk service when something goes wrong . that , You need a daemon to restart the service automatically .
In the software store of the pagoda panel , find Supervisor install .Supervisor Yes, it is Python A common set of process managers developed , Can turn a normal command line process into a background daemon, And monitor the process status , Automatically restarts when an exception exits .
1. Supervisor To configure
- name :Cloudreve
- Start the user :root default
- Running directory :/www/wwwroot/cloudreve/
- Start command :/www/wwwroot/cloudreve/cloudreve
2. Supervisor start-up
- After configuring the daemons , Restart the top right corner of the pagoda panel , After entering
Restart the service - After restart, go to the pagoda panel and you will see that the daemons are already starting , Now it's up to Supervisor management
7、 ... and 、 Configure the domain name
1. Domain name resolution
- Before you configure the domain name , You need to configure one under the domain you have prepared A Record resolution , So that the reverse proxy can be configured later .
2. Reverse proxy
- Click... In the menu on the left side of the pagoda panel
WebsiteButton , Add a site . The domain name in the site is the information when configuring and resolving the domain name , My ispan.itedus.cn - After configuring the site, you need to set up a reverse proxy for the site , Click on its settings to enter . Add and set targets in the reverse proxy URL:127.0.0.1:5212
- Last , If your domain name has been resolved , Now you can access your cloud disk service through the domain name , You can also upload and share files . Like the files I share :http://pan.itedus.cn/s/qofO
8、 ... and 、 Database switching
The default database of the system comes with itself SQLite, You can change it to Mysql, as follows :
- Database type , At present, we support sqlite | mysql Type = mysql
- user name User = Cloudreve
- password Password = Cloudreve
- Database address Host = 127.0.0.1
- Database name Name = Cloudreve
- Data table prefix TablePrefix = cd_
- After switching, remember to use the command to restart , Because at this point it needs to re create the account and password
- If you don't see the account number and password , Then you can delete the created database , Do it again
Nine 、 summary
- About Cloudreve The installation and use of cloud disk is demonstrated here , If you are interested, you can build one yourself . in addition Cloudreve You can get its source code , On the basis of the source code, you can add some functions you want , For example, when downloading, it is set to pay attention to certain things, and so on .
- except Cloudreve Cloud disk can also try Youdao cloud , This cloud disk can be directly installed on a simple server , It can also be upgraded automatically , It will be easier to use .
- Whether it's cloud services or all kinds of tools , Try more of these things , You can add a lot of other knowledge to your understanding . Maybe we'll do it , You're not just a simple CRUD The Development Engineer , Maybe it's operation and maintenance 、 product 、 Business !
边栏推荐
- 对抗训练理论分析:自适应步长快速对抗训练
- 持续测试和质量保障的关系
- Is it safe to open a stock account online now? Select a state-owned securities firm, and the fastest time to open an account is 8 minutes
- 想开户炒股,通过网上进行股票开户安全吗?-
- Definition of logic
- 小猫爪:PMSM之FOC控制15-MRAS法
- Cvpr2022 𞓜 thin domain adaptation
- 【机器学习】线性回归预测
- Shardingsphere-proxy-5.0.0 implementation of capacity range partition (V)
- 应用配置管理,基础原理分析
猜你喜欢

机器学习中 TP FP TN FN的概念

跨域和JSONP

Apple iphone14 is equipped with Beidou navigation system. What are the advantages of Beidou vs GPS?

钟珊珊:被爆锤后的工程师会起飞|OneFlow U

Cvpr2022 𞓜 thin domain adaptation

阿里巴巴面试题:多线程相关

How to get started with machine learning?

js输入输出语句,变量

MIP nerf: anti aliasing multiscale neural radiation field iccv2021

Mip-NeRF:抗混叠的多尺度神经辐射场ICCV2021
随机推荐
一次 MySQL 误操作导致的事故,「高可用」都顶不住了!
杂乱的知识点
C语言:利用自定义函数排序
产业互联网时代将依靠源自于产业本身的产品、技术和模式来实现的
机器学习中 TP FP TN FN的概念
【小程序】相对路径和绝对路径的表示符
【SPRS J P & RS 2022】小目标检测模块:A Normalized Gaussian Wasserstein Distance for Tiny Object Detection
实时计算框架:Spark集群搭建与入门案例
WinSCP和PuTTY的安装和使用
Efficient integration of heterogeneous single cell transcriptome with scanorama
C语言:百马百担问题求驮法
[technology planting grass] on the "double 11" of this year, Tencent cloud lightweight servers will be collected in a fair manner
【虹科案例】3D数据如何成为可操作的信息?– 对象检测和跟踪
Niu Xuechang's anniversary celebration: software promotion, limited time and free registration code!
DML操作
Arm learning (7) symbol table and debugging
JS language precision problem
一次 MySQL 误操作导致的事故,「高可用」都顶不住了!
C language: sorting with custom functions
Grab startup logcat