当前位置:网站首页>阿里云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里看一下有没有刚添加的文件,如果有的话说明就成功了。
边栏推荐
猜你喜欢
ActiveReportsJS 3.1 VS ActiveReportsJS 3.0
【看完就懂系列】一文6000字教你从0到1实现接口自动化
Leetcode92. reverse linked list II
[C language] address book - dynamic and static implementation
New interesting test applet source code_ Test available
postman和postman interceptor的安装
JWT vulnerability recurrence
[groovy] string (string splicing | multi line string)
函数基础学习02
How to learn to get the embedding matrix e # yyds dry goods inventory #
随机推荐
[Chongqing Guangdong education] 2777t green space planning reference questions of National Open University in autumn 2018
[positioning in JS]
已解决(sqlalchemy+pandas.read_sql)AttributeError: ‘Engine‘ object has no attribute ‘execution_options‘
Easy processing of ten-year futures and stock market data -- Application of tdengine in Tongxinyuan fund
Yyds dry goods inventory embedded matrix
MindFusion. Virtual Keyboard for WPF
[learning notes] month end operation -gr/ir reorganization
[untitled]
Huawei MPLS experiment
English essential vocabulary 3400
优先使用对象组合,而不是类继承
特殊版:SpreadJS v15.1 VS SpreadJS v15.0
Learning notes of raspberry pie 4B - IO communication (I2C)
Google Chrome CSS will not update unless the cache is cleared - Google Chrome CSS doesn't update unless clear cache
Soul 3: what is interface testing, how to play interface testing, and how to play interface automation testing?
天干地支纪年法中为什么是60年一个轮回,而不是120年
NEW:Devart dotConnect ADO.NET
How rem is used
v-if VS v-show 2.0
Test d'automatisation de l'interface utilisateur télécharger manuellement le pilote du navigateur à partir de maintenant