우분투 s3fs 설치

1 개요[ | ]

우분투 s3fs 설치·설정
apt install s3fs

2 설치[ | ]

root@zetawiki:~# apt install s3fs
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  s3fs
0 upgraded, 1 newly installed, 0 to remove and 123 not upgraded.
Need to get 177 kB of archives.
After this operation, 495 kB of additional disk space will be used.
Get:1 http://kr.archive.ubuntu.com/ubuntu xenial/universe amd64 s3fs amd64 1.79+git90-g8f11507-2 [177 kB]
Fetched 177 kB in 0s (503 kB/s)
Selecting previously unselected package s3fs.
(Reading database ... 189292 files and directories currently installed.)
Preparing to unpack .../s3fs_1.79+git90-g8f11507-2_amd64.deb ...
Unpacking s3fs (1.79+git90-g8f11507-2) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up s3fs (1.79+git90-g8f11507-2) ...

3 .passwd-s3fs 파일 작성[ | ]

root@zetawiki:~# vi ~/.passwd-s3fs
액세스키아이디:비밀액세스키
root@zetawiki:~# chmod 600 ~/.passwd-s3fs
root@zetawiki:~#

4 폴더 생성[ | ]

root@zetawiki:~# mkdir /tmp/cache
root@zetawiki:~# mkdir /s3mnt
root@zetawiki:~# chmod 777 /tmp/cache /s3mnt
root@zetawiki:~#

5 마운트 및 확인[ | ]

root@zetawiki:~# s3fs -o use_cache=/tmp/cache 버킷명 /s3mnt
root@zetawiki:~# cd /s3mnt/
root@zetawiki:/s3mnt# ll
total 6040
drwx------  1 root root       0 Jan  1  1970 ./
drwxr-xr-x 28 root root    4096 Oct 21 13:50 ../
d---------  1 root root       0 Feb 10  2016 hello/
d---------  1 root root       0 Apr  9  2016 world/
... (생략)

6 같이 보기[ | ]

7 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}