当前位置:网站首页>阿里云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里看一下有没有刚添加的文件,如果有的话说明就成功了。
边栏推荐
- Performance of calling delegates vs methods
- 【软件逆向-分析工具】反汇编和反编译工具
- In MySQL Association query, the foreign key is null. What if the data cannot be found?
- Assembly - getting started
- [数组]566. 重塑矩阵-简单
- How is the entered query SQL statement executed?
- Kubernetes - Multi cluster management
- This article takes you to understand the relationship between the past and present of Bi and the digital transformation of enterprises
- Plasticscm enterprise crack
- 【web源码-代码审计方法】审计技巧及审计工具
猜你喜欢

JWT vulnerability recurrence

@The problem of cross database query invalidation caused by transactional annotation

Web components series (VII) -- life cycle of custom components

NEW:Devart dotConnect ADO. NET

Thread Basics

UE4 DMX和grandMA2 onPC 3.1.2.5的操作流程

【web審計-源碼泄露】獲取源碼方法,利用工具

A brief introduction to the behavior tree of unity AI

ActiveReportsJS 3.1 VS ActiveReportsJS 3.0

Test d'automatisation de l'interface utilisateur télécharger manuellement le pilote du navigateur à partir de maintenant
随机推荐
error Couldn‘t find a package.json file in “你的路径“
【软件逆向-基础知识】分析方法、汇编指令体系结构
Clickhouse materialized view
Test d'automatisation de l'interface utilisateur télécharger manuellement le pilote du navigateur à partir de maintenant
已解决(sqlalchemy+pandas.read_sql)AttributeError: ‘Engine‘ object has no attribute ‘execution_options‘
[positioning in JS]
It took two nights to get Wu Enda's machine learning course certificate from Stanford University
【PHP特性-变量覆盖】函数的使用不当、配置不当、代码逻辑漏洞
IronXL for . NET 2022.6
How rem is used
C # use awaiter
Soul 3: what is interface testing, how to play interface testing, and how to play interface automation testing?
Deflocculant aminoiodotide eye drops
[system security] ten thousand words summary system virtualization container bottom layer principle experiment
Subversive cognition: what does SRE do?
[an Xun cup 2019] not file upload
[Chongqing Guangdong education] 2777t green space planning reference questions of National Open University in autumn 2018
Why is there a reincarnation of 60 years instead of 120 years in the tiangan dizhi chronology
[groovy] string (string splicing | multi line string)
Difference between MotionEvent. getRawX and MotionEvent. getX