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

相关推荐
easy_coder8 小时前
Agent:原理、架构与工程实践(中篇)
架构·云计算
有谁看见我的剑了?19 小时前
windows 2016 模板机安装 CloudbaseInitSetup_x64
云计算
翼龙云_cloud19 小时前
阿里云代理商:OpenClaw 接入 Skills 的安装、分类实操及部署
阿里云·云计算·云服务器·openclaw
奇思智算19 小时前
2026年AI算力租用平台深度横评:阿里云_腾讯云_AutoDL_智星云谁更适合你?
人工智能·阿里云·云计算·腾讯云·gpu算力租用
easy_coder20 小时前
Agent:原理、架构与工程实践(中篇案例)
架构·云计算
easy_coder21 小时前
Agent:原理、架构与工程实践(终篇)
架构·云计算
Austindatabases1 天前
阿里云MongoDB 部署安全吗? 多可用区怎么搞?
数据库·安全·mongodb·阿里云·云计算
小白考证进阶中1 天前
阿里云ACP考试报名有门槛嘛?
阿里云·云计算·阿里云acp·阿里云acp云计算·阿里云acp认证·阿里云acp考试·阿里云acp备考
TG_yunshuguoji1 天前
阿里云代理商:阿里云OpenClaw 集成claude-mem与OpenViking指南
阿里云·云计算·openclaw
亚林瓜子1 天前
AWS Catalog中数据搬到Catalog中
大数据·python·spark·云计算·aws·pyspark·glue