当前位置:网站首页>Use ECs and OSS to set up personal network disk
Use ECs and OSS to set up personal network disk
2022-07-27 01:53:00 【Palm nine】
Use ECS and OSS Set up personal network disk
experiment : Use open source network disk tools cloudreve Set up personal network disk
One 、 Environmental preparation
Select ECS on Alibaba cloud computing platform ECS, Create an instance


You can change the following options
One core one G Enough can be used. :



Others are not changed


Two 、 Service installation
Remote connection —— You can use VNC, It can also be used. Xshell( This experiment uses Xshell Connect )


install cloudreve
wget -c https://github.com/cloudreve/Cloudreve/releases/download/3.5.3/cloudreve_3.5.3_linux_amd64.tar.gz

decompression :

3、 ... and 、 Open ports 5212
go back to ECS Console 
Click Add manually 
Click save 

Account number and password :


Four 、 Object storage OSS


Other defaults are ok 
Sign in https://ram.console.aliyun.com establish RAM account number , And authorize



Add permissions 


5、 ... and 、 install ossfs mount OSS
Download a software :wget -c https://github.com/aliyun/ossfs/releases/download/v1.80.5/ossfs_1.80.5_centos7.0_x86_64.rpm
install :# yum localinstall ossfs_1.80.5_centos7.0_x86_64.rpm

Configure account access information :echo BucketName:yourAccessKeyId:yourAccessKeySecret > /etc/passwd-ossfs
[[email protected]mxpgs5ycpklZ ~]# echo zhangjiu:LTAI5tQ9SzYGghBwEJmefFJ5:BMHvLs6AfXlZnY0S0WO1EoJRXEeeW9 > /etc/passwd-ossfs
[[email protected] ~]# chmod 640 /etc/passwd-ossfs
Open the download CSV file 

Modify the configuration command
echo zhangjiu:LTAI5tQ9SzYGghBwEJmefFJ5:BMHvLs6AfXlZnY0S0WO1EoJRXEeeW9 > /etc/passwd-ossfs
Modify the permissions
[[email protected] ~]# chmod 640 /etc/passwd-ossfs
mount OSS:
Create mount point 
mount
Format :ossfs BucketName mountfolder -o url=Endpoint


Permanently mount : vim /etc/init.d/ossfs
#!/bin/bash
ossfs Automount Aliyun OSS Bucket in the specified direcotry.
chkconfig: 2345 90 10
description: Activates/Deactivates ossfs configured to start at boot time.
ossfs BucketName mountfolder -o url=Endpoint -o allow_other
Modify the permissions 
Put it into the background to run 
6、 ... and 、 Add storage policy
Log back in 





stay bucket Create a directory on dir1
go back to cloudreve
Just take the next step 


7、 ... and 、 test




Successful experiment
边栏推荐
- 【CANN训练营】走进媒体数据处理1
- iptables
- Shell (10) array and bubble sort
- [cann training camp] enter media data processing (Part 2)
- 识别神器Mx-yolov3
- Domain name analysis and DNS configuration installation
- CDC only supports PostgreSQL database to version 12? Is there any plan to support version 14? Does anyone know?
- MySQL中对于事务完整的超详细介绍
- Text three swordsman two
- GDB的使用
猜你喜欢
随机推荐
DHCP实验思路
DHCP experiment ideas
Use of shell (11) brackets
Guidance process and service control
27shell conditional statement
Shell course summary
22FTP
虚拟化技术KVM
PXE实验
Suggestions for beginners of MySQL (strongly recommended ~ don't regret ~ ~)
网络与VPC之动手实验
Problems and solutions of paddleocr packaging
System safety and Application
DNS
第一次使用c语言自己编写程序,有大佬可以稍微帮忙看看嘛
FTP服务
作业1-4学习笔记
Process and planned task management
Makefile
Application of load balancing









