当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
Which securities company is better or safer for retail investors to open accounts
无线传感器网络(双语)复习
Web services (07) - LNMP one click deployment
Excel changes the format of scientific counting method into text
iptables
C language problem solving -- let the balloon rise
CDC only supports PostgreSQL database to version 12? Is there any plan to support version 14? Does anyone know?
DHCP experiment ideas
MySQL system variables and state variables
LAMP.
数组的定义
32三剑客sed
The bottom implementation of string container
Identify artifact MX yolov3
Shell (9) function
系统动力学专拓考试重点总结
源码编译安装LAMP
[cann training camp] enter media data processing (Part 2)
31正则表达式
动态规划(背包问题)









