当前位置:网站首页>阿里云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里看一下有没有刚添加的文件,如果有的话说明就成功了。
边栏推荐
- How to make the listbox scroll automatically when adding a new item- How can I have a ListBox auto-scroll when a new item is added?
- Leetcode42. connect rainwater
- Monitoring web performance with performance
- 一文带你了解BI的前世今身与企业数字化转型的关系
- [vérification sur le Web - divulgation du code source] obtenir la méthode du code source et utiliser des outils
- speed or tempo in classical music
- 测试开发是什么?为什么现在那么多公司都要招聘测试开发?
- postman和postman interceptor的安装
- Leetcode92. reverse linked list II
- Kubernetes - identity and authority authentication
猜你喜欢
【刷题】BFS题目精选
Leetcode42. connect rainwater
[vérification sur le Web - divulgation du code source] obtenir la méthode du code source et utiliser des outils
Yyds dry goods inventory embedded matrix
Clickhouse synchronization MySQL (based on materialization engine)
Quick start of UI component development of phantom engine [umg/slate]
[wp]bmzclub几道题的writeup
About MySQL database connection exceptions
How to learn to get the embedding matrix e # yyds dry goods inventory #
New interesting test applet source code_ Test available
随机推荐
[wp]bmzclub writeup of several questions
Analysis of glibc strlen implementation mode
[Chongqing Guangdong education] 2777t green space planning reference questions of National Open University in autumn 2018
[summary of two registration methods]
[array]566 Reshape the matrix - simple
【软件逆向-基础知识】分析方法、汇编指令体系结构
【web源码-代码审计方法】审计技巧及审计工具
Delphi free memory
[web source code code code audit method] audit skills and tools
【软件逆向-分析工具】反汇编和反编译工具
优先使用对象组合,而不是类继承
Easy processing of ten-year futures and stock market data -- Application of tdengine in Tongxinyuan fund
[untitled]
Is there a sudden failure on the line? How to make emergency diagnosis, troubleshooting and recovery
Basic function learning 02
Subversive cognition: what does SRE do?
Enterprise level: spire Office for . NET:Platinum|7.7. x
UI自动化测试从此告别手动下载浏览器驱动
[web Audit - source code disclosure] obtain source code methods and use tools
Soul 3: what is interface testing, how to play interface testing, and how to play interface automation testing?