当前位置:网站首页>阿里云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里看一下有没有刚添加的文件,如果有的话说明就成功了。
边栏推荐
- speed or tempo in classical music
- Anti debugging (basic principles of debugger Design & NT NP and other anti debugging principles)
- Installation of postman and postman interceptor
- 函数基础学习02
- [groovy] loop control (number injection function implements loop | times function | upto function | downto function | step function | closure can be written outside as the final parameter)
- Official announcement! The third cloud native programming challenge is officially launched!
- 【web審計-源碼泄露】獲取源碼方法,利用工具
- It took two nights to get Wu Enda's machine learning course certificate from Stanford University
- Clickhouse synchronization MySQL (based on materialization engine)
- [wp]bmzclub几道题的writeup
猜你喜欢
![[wp]bmzclub writeup of several questions](/img/15/2838b93a605b09d3e2996f6067775c.png)
[wp]bmzclub writeup of several questions
![[groovy] string (string type variable definition | character type variable definition)](/img/d8/f02e6ad760fb039873718ff7a97b0a.jpg)
[groovy] string (string type variable definition | character type variable definition)

postman和postman interceptor的安装

Installation of postman and postman interceptor
![[software reverse analysis tool] disassembly and decompilation tool](/img/3e/d1ec8f8193c4fb2c790e7e467b4502.png)
[software reverse analysis tool] disassembly and decompilation tool

Is there a sudden failure on the line? How to make emergency diagnosis, troubleshooting and recovery

面试汇总:这是一份全面&详细的Android面试指南
![[array]566 Reshape the matrix - simple](/img/3c/593156f5bde67bd56828106d7bed3c.png)
[array]566 Reshape the matrix - simple

Clickhouse物化视图

【软件逆向-分析工具】反汇编和反编译工具
随机推荐
@Transactional 注解导致跨库查询失效的问题
UI automation test farewell to manual download of browser driver
Leetcode42. connect rainwater
Why do some programmers change careers before they are 30?
New interesting test applet source code_ Test available
Assembly - getting started
Difference between MotionEvent. getRawX and MotionEvent. getX
Kubernetes -- cluster expansion principle
[learning notes] month end operation -gr/ir reorganization
UI自動化測試從此告別手動下載瀏覽器驅動
反絮凝剂-氨碘肽滴眼液
【软件逆向-分析工具】反汇编和反编译工具
Is there any way to change the height of the uinavigationbar in the storyboard without using the UINavigationController?
Clickhouse物化视图
MySQL winter vacation self-study 2022 11 (9)
[deep learning] deep learning reference materials
An elegant program for Euclid‘s algorithm
Nmap user manual learning records
Interview summary: This is a comprehensive & detailed Android interview guide
Kubernetes - identity and authority authentication