当前位置:网站首页>阿里云ECS使用cloudfs4oss挂载OSS
阿里云ECS使用cloudfs4oss挂载OSS
2022-07-05 03:41:00 【源码庄】
cloudfs4oss可以帮我们将OSS直接挂载到ECS上,就像一个目录一样方便访问。使用方法:
1、安装配置环境:
yum install libcurl libcurl-devel openssl-devel fuse fuse-libs fuse-devel libxml2-develoss-cn-qingdao- internal .aliyuncs.com
2、下载cloudfs4oss文件并解压(这个可以在阿里云的云市场里购买(免费的)后也会有链接下载的),解压后再进到cloudfs4oss目录:
wget http: //blog.cloudtalkers.com/w ... ar.gz
tar -zxf CloudFS_Centos64_0273.tar.gz
yum install libunwind-devel
cd CloudFS_Centos64
3、安装cloudfs4oss,这里有默认安装和自定义安装
- 默认安装是指cloudfs的安装目录是/usr/local/cloudfs,oss的挂载目录是/mnt/oss,操作如下:./CloudFS_Install.sh
- 自定义安装(个人建议这个,方便),如果是wordpress程序,可以直接挂载到/home/wwwroot/网站目录/wp-content/uploads,操作如下:
./CloudFS_Install.sh INSTALL_DIR=/usr/local/cloudfs MOUNT_POINT=/home/wwwroot/网站目录/wp-content/uploads
这里需要注意的是:网站目录/wp-content/uploads中的uploads目录必须为空,否则会出错!
4、挂载后再配置cloudfs.conf文件,一般在/usr/local/cloudfs/conf下,具体需要配置如下:
根据自己的OSS情况进行配置即可。
5、运行cloudfs4oss,输入:
service cloudfs start
然后可以在Wordpress的多媒体里添加文件,再在OSS里看一下有没有刚添加的文件,如果有的话说明就成功了。
边栏推荐
- Huawei MPLS experiment
- [punch in questions] integrated daily 5-question sharing (phase III)
- 【web審計-源碼泄露】獲取源碼方法,利用工具
- [deep learning] deep learning reference materials
- MySQL winter vacation self-study 2022 11 (10)
- Kubernetes - identity and authority authentication
- C # use awaiter
- [wp]bmzclub writeup of several questions
- This article takes you to understand the relationship between the past and present of Bi and the digital transformation of enterprises
- Excuse me, my request is a condition update, but it is blocked in the buffer. In this case, can I only flush the cache every time?
猜你喜欢
The architect started to write a HelloWorld
[安洵杯 2019]不是文件上传
How to learn to get the embedding matrix e # yyds dry goods inventory #
MindFusion. Virtual Keyboard for WPF
Leetcode92. reverse linked list II
error Couldn‘t find a package.json file in “你的路径“
[untitled]
postman和postman interceptor的安装
How to define a unified response object gracefully
【软件逆向-基础知识】分析方法、汇编指令体系结构
随机推荐
JWT漏洞复现
[wp][入门]刷弱类型题目
Soul 3: what is interface testing, how to play interface testing, and how to play interface automation testing?
天干地支纪年法中为什么是60年一个轮回,而不是120年
Web components series (VII) -- life cycle of custom components
JWT vulnerability recurrence
[wp][introduction] brush weak type questions
[C language] address book - dynamic and static implementation
UE4 DMX和grandMA2 onPC 3.1.2.5的操作流程
@The problem of cross database query invalidation caused by transactional annotation
When sqlacodegen generates a model, how to solve the problem that the password contains special characters?
一文带你了解BI的前世今身与企业数字化转型的关系
IPv6 experiment
Clickhouse synchronization MySQL (based on materialization engine)
Deflocculant aminoiodotide eye drops
Clickhouse同步mysql(基于物化引擎)
Excuse me, my request is a condition update, but it is blocked in the buffer. In this case, can I only flush the cache every time?
Plasticscm enterprise crack
IronXL for . NET 2022.6
KVM virtualization