当前位置:网站首页>Alibaba cloud ECS uses cloudfs4oss to mount OSS
Alibaba cloud ECS uses cloudfs4oss to mount OSS
2022-07-05 03:59:00 【Source village】
cloudfs4oss Can help us to OSS Mount directly to ECS On , It's as easy to access as a directory . Usage method :
1、 Install the configuration environment :
yum install libcurl libcurl-devel openssl-devel fuse fuse-libs fuse-devel libxml2-develoss-cn-qingdao- internal .aliyuncs.com
2、 download cloudfs4oss File and extract ( This can be purchased in alicloud's cloud market ( Free of charge ) There will also be a link to download ), Decompress and then go to cloudfs4oss Catalog :
wget http: //blog.cloudtalkers.com/w ... ar.gz
tar -zxf CloudFS_Centos64_0273.tar.gz
yum install libunwind-devel
cd CloudFS_Centos64
3、 install cloudfs4oss, There are default and custom installations
- The default installation is cloudfs The installation directory of is /usr/local/cloudfs,oss The mount directory of is /mnt/oss, The operation is as follows :./CloudFS_Install.sh
- Custom installation ( I personally suggest that , convenient ), If it is wordpress Program , It can be mounted directly to /home/wwwroot/ Website directory /wp-content/uploads, The operation is as follows :
./CloudFS_Install.sh INSTALL_DIR=/usr/local/cloudfs MOUNT_POINT=/home/wwwroot/ Website directory /wp-content/uploads
What needs to be noted here is : Website directory /wp-content/uploads Medium uploads Directory must be empty , Otherwise it will go wrong !
4、 Mount and configure cloudfs.conf file , Generally in /usr/local/cloudfs/conf Next , The specific configuration is as follows :
According to their own OSS You can configure the situation .
5、 function cloudfs4oss, Input :
service cloudfs start
Then you can go to Wordpress Add files to your multimedia , And then OSS Let's see if there are any files just added , If there is one, it means success .
边栏推荐
- error Couldn‘t find a package.json file in “你的路径“
- Containerd series - detailed explanation of plugins
- Containerization Foundation
- Phpmailer reported an error: SMTP error: failed to connect to server: (0)
- [untitled]
- 特殊版:SpreadJS v15.1 VS SpreadJS v15.0
- Some enterprise interview questions of unity interview
- Official announcement! The third cloud native programming challenge is officially launched!
- 【软件逆向-分析工具】反汇编和反编译工具
- Redis source code analysis: redis cluster
猜你喜欢
Subversive cognition: what does SRE do?
[brush questions] BFS topic selection
Containerd series - what is containerd?
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
线上故障突突突?如何紧急诊断、排查与恢复
IronXL for . NET 2022.6
Wechat applet development process (with mind map)
As soon as I write the code, President Wang talks with me about the pattern all day
The new project Galaxy token just announced by coinlist is gal
随机推荐
ABP vNext microservice architecture detailed tutorial - distributed permission framework (Part 2)
为什么百度、阿里这些大厂宁愿花25K招聘应届生,也不愿涨薪5K留住老员工?
[move pictures up, down, left and right through the keyboard in JS]
Get to know MySQL connection query for the first time
测试开发是什么?为什么现在那么多公司都要招聘测试开发?
[wp][入门]刷弱类型题目
[web Audit - source code disclosure] obtain source code methods and use tools
Test d'automatisation de l'interface utilisateur télécharger manuellement le pilote du navigateur à partir de maintenant
Containerd series - what is containerd?
How is the entered query SQL statement executed?
v-if VS v-show 2.0
JVM garbage collection
ABP vNext microservice architecture detailed tutorial - distributed permission framework (Part 1)
speed or tempo in classical music
Use object composition in preference to class inheritance
10种寻址方式之间的区别
【软件逆向-基础知识】分析方法、汇编指令体系结构
【做题打卡】集成每日5题分享(第三期)
Google Chrome CSS will not update unless the cache is cleared - Google Chrome CSS doesn't update unless clear cache
Why is there a reincarnation of 60 years instead of 120 years in the tiangan dizhi chronology