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

相关推荐
TiDB 社区干货传送门1 小时前
平凯 Loop 开放 PaaS 原子能力,破解企业级多智能体“底层困局”
云原生·云计算·paas
Elastic 中国社区官方博客5 小时前
Elastic 获得全新的 AWS 数据能力认证
大数据·人工智能·elasticsearch·搜索引擎·ai·云计算·aws
大今野3 天前
专转本计算机·云计算核心考点精讲(概念·关键技术·服务模式)
大数据·云计算·big data·专转本
Johny_Zhao6 天前
Keepalived与Nginx架构选型
linux·nginx·信息安全·云计算·apache·shell·yum源·keepalive·系统运维
66IT6615 天前
Veeam ONE v13.1 发布:全新 HTML5 Web 客户端与 PostgreSQL 报告库
云计算·虚拟化·监控·数据保护·veeam
2601_9679801116 天前
Python 与云计算:AWS、GCP、Azure 实践
python·云计算·azure·aws·gcp
cc57250265317 天前
云计算技术应用专业大学期间考证怎么安排?
云计算
xbzb18 天前
镜像推上云:华为云 SWR 与阿里云 ACR 的建组织、加速器、上传与公开
阿里云·华为云·云计算·镜像·acr·swr
humcomm19 天前
设计与架构 · 01 sidecar 会消失吗:从 Istio ambient GA 到 AWS App Mesh 关停,一次服务网格数据面的重新洗牌
架构·istio·aws