ubuntu 挂载 aws 存储桶
一 环境
docker ubuntu18.04 bionic
二 安装部署
3.1 安装环境依赖包
apt-get install build-essential libcurl4-openssl-dev libxml2-dev mime-support libfuse-dev fuse automake
3.2 下载,编译并安装s3fs
git clone https://github.com/s3fs-fuse/s3fs-fuse.git
cd s3fs-fuse
./autogen.sh
./configure --prefix=/usr/local
make
sudo make install
三 挂载bucket
将名为“s3fs-mount-bucket”的北京区域S3存储桶挂载到本地目录“/home/ec2-user/s3mnt”。
s3fs s3fs-mount-bucket /home/ec2-user/s3mnt -o passwd_file=/home/ec2-user/.passwd-s3fs -o url=http://s3.cn-north-1.amazonaws.com.cn -o endpoint=cn-north-1