当前位置:网站首页>阿里云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里看一下有没有刚添加的文件,如果有的话说明就成功了。
边栏推荐
- Share the newly released web application development framework based on blazor Technology
- Basic knowledge of tuples
- About MySQL database connection exceptions
- ActiveReportsJS 3.1 VS ActiveReportsJS 3.0
- Monitoring web performance with performance
- This article takes you to understand the relationship between the past and present of Bi and the digital transformation of enterprises
- JWT漏洞复现
- Thread Basics
- Resolved (sqlalchemy+pandas.read_sql) attributeerror: 'engine' object has no attribute 'execution_ options‘
- speed or tempo in classical music
猜你喜欢

Leetcode42. connect rainwater

Zero foundation uses paddlepaddle to build lenet-5 network

C # use awaiter

【看完就懂系列】一文6000字教你从0到1实现接口自动化
![[C language] address book - dynamic and static implementation](/img/eb/07e7a32a172e5ae41457cf8a49c130.jpg)
[C language] address book - dynamic and static implementation

Redis source code analysis: redis cluster

【刷题】BFS题目精选
![Quick start of UI component development of phantom engine [umg/slate]](/img/8b/cee092ec1ab105a7e234143bd56861.jpg)
Quick start of UI component development of phantom engine [umg/slate]
![[web Audit - source code disclosure] obtain source code methods and use tools](/img/ea/84e67a1fca0e12cc4452c744c242b4.png)
[web Audit - source code disclosure] obtain source code methods and use tools

Thread Basics
随机推荐
Quick start of UI component development of phantom engine [umg/slate]
51 independent key basic experiment
MySQL winter vacation self-study 2022 11 (10)
【做题打卡】集成每日5题分享(第三期)
IronXL for . NET 2022.6
New interesting test applet source code_ Test available
About MySQL database connection exceptions
[an Xun cup 2019] not file upload
[luat-air105] 4.1 file system FS
[groovy] string (string type variable definition | character type variable definition)
[untitled]
JWT漏洞复现
一文带你了解BI的前世今身与企业数字化转型的关系
Kubernetes - Multi cluster management
Huawei MPLS experiment
KVM virtualization
Timing manager based on C #
企业级:Spire.Office for .NET:Platinum|7.7.x
English essential vocabulary 3400
[Chongqing Guangdong education] 2777t green space planning reference questions of National Open University in autumn 2018