当前位置:网站首页>Alibaba cloud ECS uses cloudfs4oss to mount OSS
Alibaba cloud ECS uses cloudfs4oss to mount OSS
2022-07-05 03:59:00 【Source village】
cloudfs4oss Can help us to OSS Mount directly to ECS On , It's as easy to access as a directory . Usage method :
1、 Install the configuration environment :
yum install libcurl libcurl-devel openssl-devel fuse fuse-libs fuse-devel libxml2-develoss-cn-qingdao- internal .aliyuncs.com
2、 download cloudfs4oss File and extract ( This can be purchased in alicloud's cloud market ( Free of charge ) There will also be a link to download ), Decompress and then go to cloudfs4oss Catalog :
wget http: //blog.cloudtalkers.com/w ... ar.gz
tar -zxf CloudFS_Centos64_0273.tar.gz
yum install libunwind-devel
cd CloudFS_Centos64
3、 install cloudfs4oss, There are default and custom installations
- The default installation is cloudfs The installation directory of is /usr/local/cloudfs,oss The mount directory of is /mnt/oss, The operation is as follows :./CloudFS_Install.sh
- Custom installation ( I personally suggest that , convenient ), If it is wordpress Program , It can be mounted directly to /home/wwwroot/ Website directory /wp-content/uploads, The operation is as follows :
./CloudFS_Install.sh INSTALL_DIR=/usr/local/cloudfs MOUNT_POINT=/home/wwwroot/ Website directory /wp-content/uploads
What needs to be noted here is : Website directory /wp-content/uploads Medium uploads Directory must be empty , Otherwise it will go wrong !
4、 Mount and configure cloudfs.conf file , Generally in /usr/local/cloudfs/conf Next , The specific configuration is as follows :
According to their own OSS You can configure the situation .
5、 function cloudfs4oss, Input :
service cloudfs start
Then you can go to Wordpress Add files to your multimedia , And then OSS Let's see if there are any files just added , If there is one, it means success .
边栏推荐
- 优先使用对象组合,而不是类继承
- 特殊版:SpreadJS v15.1 VS SpreadJS v15.0
- [software reverse - basic knowledge] analysis method, assembly instruction architecture
- Summary of scene design
- 25K 入职腾讯的那天,我特么哭了
- v-if VS v-show 2.0
- 线上故障突突突?如何紧急诊断、排查与恢复
- Deep learning - LSTM Foundation
- Redis source code analysis: redis cluster
- [wp][入门]刷弱类型题目
猜你喜欢
Uni app common functions /api
灵魂三问:什么是接口测试,接口测试怎么玩,接口自动化测试怎么玩?
About the recent experience of writing questions
MindFusion.Virtual Keyboard for WPF
Multimedia query
An elegant program for Euclid‘s algorithm
Redis source code analysis: redis cluster
[understand series after reading] 6000 words teach you to realize interface automation from 0 to 1
Redis6-01nosql database
[web Audit - source code disclosure] obtain source code methods and use tools
随机推荐
Wechat applet development process (with mind map)
provide/inject
已解决(sqlalchemy+pandas.read_sql)AttributeError: ‘Engine‘ object has no attribute ‘execution_options‘
About the recent experience of writing questions
Differences among 10 addressing modes
NEW:Devart dotConnect ADO. NET
[brush questions] BFS topic selection
Learning notes of raspberry pie 4B - IO communication (I2C)
It took two nights to get Wu Enda's machine learning course certificate from Stanford University
Special Edition: spreadjs v15.1 vs spreadjs v15.0
【做题打卡】集成每日5题分享(第三期)
我就一写代码的,王总整天和我谈格局...
UI自动化测试从此告别手动下载浏览器驱动
Deep learning - LSTM Foundation
Nmap user manual learning records
v-if VS v-show 2.0
企业级:Spire.Office for .NET:Platinum|7.7.x
[an Xun cup 2019] not file upload
Subversive cognition: what does SRE do?
Operation flow of UE4 DMX and grandma2 onpc 3.1.2.5