aws挂载s3

安装

yum update -y

yum install automake fuse fuse-devel gcc-c++ git libcurl-devel libxml2-devel make openssl-devel -y

git clone https://github.com/s3fs-fuse/s3fs-fuse.git

cd s3fs-fuse

./autogen.sh

./configure

make

make install

配置path

vi ~/.bash_profile

PATH= P A T H : PATH: PATH:HOME/bin:/usr/local/bin

source ~/.bash_profile

挂载

echo AKIA3MIV5xxxxxxxxxxx:sdZTe7mhAaVCtjyrWsUOwUPyUQG4zxxxxxxxxxxx > /etc/passwd-s3fs

chmod 600 /etc/passwd-s3fs

s3fs bucket-name /mnt/s3 -o passwd_file=/etc/passwd-s3fs -o url=https://s3-xx-xxxx-1.amazonaws.com -o endpoint=xx-xxxx-1

开机启动

修改/etc/fstab文件

编辑/etc/fstab文件,添加后面的自动挂载命令。

vi /etc/fstab

相关推荐
Anna_Tong1 天前
腾讯云安全加速:应对网络攻击与访问延迟的现实挑战
安全·云计算·腾讯云·企业安全·ddos·云安全·数据保护
渲染101专业云渲染1 天前
渲染101对Blender的支持与硬件配置详解
3d·云计算·blender·maya·houdini
严文文-Chris1 天前
【奥卡姆剃刀原理-如何理解云计算和边缘计算 关键字摘取】
人工智能·云计算·边缘计算
HaoHao_0101 天前
腾讯云 轻量云对象存储
云计算·腾讯云·存储·轻量云·套餐
AskHarries2 天前
AWS S3 如何设置公开访问权限?
后端·aws
容器魔方2 天前
「挚文集团」正式加入 Karmada 用户组!携手社区共建多集群生态
云原生·容器·云计算
小狗很可爱2 天前
云计算相关
云计算
虚魍2 天前
高版本k8s文件无法识别镜像
linux·运维·容器·kubernetes·云计算
春生黎至10053 天前
云计算及其他计算
云计算
渲染101专业云渲染3 天前
渲染 101 平台 3ds Max 建筑动画渲染全攻略:费用与时间
3d·云计算·3dsmax·blender·maya·houdini