Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Ubuntu Server mounts AWS S3 into a local folder

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Sudo apt-get install automake autotools-dev\ fuse gaming + git libcurl4-gnutls-dev libfuse-dev\ libssl-dev libxml2-dev make pkg-config

Git clone https://github.com/s3fs-fuse/s3fs-fuse.git

Cd s3fs-fuse

Sudo. / autogen.sh

Sudo. / configure

Sudo make

Sudo make install

Sudo vim / etc/passwd-s3fs

Key format: AKIAJExxxxxxxxxxxxxxxxxxxxxxx:Gcdpi2axxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Sudo chmod 640 / etc/passwd-s3fs

Sudo mkdir-p / s3/folder-name

Sudo s3fs-o allow_other bucket-name / s3/folder-name

The mount path of AWS S3 in China is different:

Sudo s3fs-o allow_other bucket-name / s3/folder-name-o url= https://s3.cn-north-1.amazonaws.com.cn

Unmount:

Sudo umount-l / s3/folder-name

Write / etc/fstab to realize automatic mount on boot

Sudo vim / etc/fstab

Bucket-name / s3/folder-name fuse.s3fs _ netdev,allow_other 0 0

Reference document: http://www.whiteboardcoder.com/2017/12/how-to-mount-s3-bucket-as-hard-drive.html

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report