Use S3fs-fuse to mount S3 buckets on AWS Linux Instances

Source: Internet
Author: User
Tags openssl git clone automake

First, install S3fs-fuse and dependent packages

1. Installing dependent Packages

On CentOS7 or AMI Linux 7:# yum install automake fuse fuse-devel gcc-c++ git libcurl-devel libxml2-devel make Openssl-deve LOn Ubuntu 14.04 or later:$ sudo apt-get install automake autotools-dev fuse g++ git libcurl4-openssl-dev libfuse-dev Libs Sl-dev Libxml2-dev make Pkg-config

2. Installing S3fs-fuse

# cd/usr/local/# git clone https://github.com/s3fs-fuse/s3fs-fuse.git# cd s3fs-fuse#./autogen.sh#./configure# make# ma Ke Install


Second, import IAM user credentials

Iam-> User (user with S3 permissions), security certificate, create access key--download file to local

# echo myidentity:mycredential > ~/.passwd-s3fs# chmod ~/.passwd-s3fs


Third, Mount S3 bucket to local

1. Manual Mount

# mkdir/mnt/s3# S3fs-o passwd_file=~/.passwd-s3fs-o endpoint=us-east-2-o allow_other mybucket_name/mnt/s3

2. Write/etc/fstab boot auto mount

# VIM/ETC/FSTABMYBUCKET_NAME/MNT/S3 Fuse.s3fs _netdev,allow_other 0 0


Use S3fs-fuse to mount S3 buckets on AWS Linux Instances

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.