标签:安全证书 use ssl 本地 自动挂载 fst https eve usr
一、安装s3fs-fuse以及依赖包 1. 安装依赖包
On CentOS7 or AMI Linux 7: # yum install automake fuse fuse-devel gcc-c++ git libcurl-devel libxml2-devel make openssl-devel On Ubuntu 14.04 or later: $ sudo apt-get install automake autotools-dev fuse g++ git libcurl4-openssl-dev libfuse-dev libssl-dev libxml2-dev make pkg-config
2. 安装s3fs-fuse
# cd /usr/local/ # git clone https://github.com/s3fs-fuse/s3fs-fuse.git # cd s3fs-fuse # ./autogen.sh # ./configure # make # make install
二、导入IAM用户身份凭证
IAM->用户(具有S3权限的用户)->安全证书->创建访问密钥->下载文件到本地
# echo MYIDENTITY:MYCREDENTIAL > ~/.passwd-s3fs # chmod 600 ~/.passwd-s3fs
三、挂载S3存储桶到本地
1. 手动挂载
# mkdir /mnt/s3 # s3fs -o passwd_file=~/.passwd-s3fs -o endpoint=us-east-2 -o allow_other mybucket_name /mnt/s3
2. 写入/etc/fstab开机自动挂载
# vim /etc/fstab mybucket_name /mnt/s3 fuse.s3fs _netdev,allow_other 0 0
使用s3fs-fuse在AWS Linux实例上挂载S3存储桶
标签:安全证书 use ssl 本地 自动挂载 fst https eve usr
原文地址:http://blog.51cto.com/daibaiyang119/2146818