内容简介:测试环境Amazon AMI Linux
测试环境
Amazon AMI Linux
7.5
s3fs
s3fs allows Linux and macOS to mount an S3 bucket via FUSE. s3fs preserves the native object format for files, allowing use of other tools like s3cmd.
STEP1. 安装s3fs-fuse相关依赖包
# install automake fuse fuse-devel gcc-c++ git \ libcurl-devel libxml2-devel make openssl-devel
STEP2.下s3fs-fuse,编译安装s3fs-fuse
# cd /usr/local/ # git clone https://github.com/s3fs-fuse/s3fs-fuse.git # cd s3fs-fuse # ./autogen.sh # ./configure # make # make install
STEP3.创建访问s3的.passwd-s3fs认证文件,将IAM用户的认证access key和access secret写入s3fs-fuse的认证文件
# echo MYIDENTITY:MYCREDENTIAL > ~/.passwd-s3fs # chmod 600 ~/.passwd-s3fs
STEP4.挂载S3存储桶到本地
# mkdir /mnt/s3bucket # s3fs -o passwd_file=~/.passwd-s3fs -o endpoint=us-east-2 -o allow_other s3_bucket_name /mnt/s3bucket STEP5.配置fstab,开机自动挂载分区 # vim /etc/fstab s3_bucket_name /mnt/s3bucket fuse.s3fs _netdev,allow_other 0 0
参考
https://github.com/s3fs-fuse/s3fs-fuse
以上所述就是小编给大家介绍的《[CentOS] 使用s3fs-fuse挂载S3Bucket到本地分区》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Single Page Web Applications
Michael Mikowski、Josh Powell / Manning Publications / 2013-9-30 / USD 44.99
Code for most web sites mostly runs on the server. When a user clicks on a link, the site reacts slowly because the browser sends information to the server and the server sends it back again before di......一起来看看 《Single Page Web Applications》 这本书的介绍吧!