반응형
우분투 22.04에서 goofys를 사용하여 Amazon S3 버킷을 마운트하는 방법
Goofys 설치
바이너리로 설치합니다.
wget https://github.com/kahing/goofys/releases/latest/download/goofys -O /usr/local/bin/goofys
chmod +x /usr/local/bin/goofys
Goofys 버전 확인
goofys version 0.24.0-45b8d78375af1b24604439d2e60c567654bcdf88
goofys --version
AWS 자격 증명 설정
AWS CLI v2 설치
curl -s "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install
액세스 키(AWS Access Key)와 비밀 액세스 키(AWS Secret Access Key) 등록
aws configure
728x90
S3 버킷 마운트
마운트 디렉토리 생성
mkdir /mnt/s3bucket
AWS S3 버킷 목록 확인
aws s3 ls
Goofys로 마운트
goofys aws-s3-bucket /mnt/s3bucket
마운트 해제
fusermount -u /mnt/s3bucket
fstab을 사용해 부팅 시 자동 마운트 설정
/etc/fstab에 항목 추가
sudo vim /etc/fstab
goofys#your-bucket-name /home/ubuntu/s3bucket fuse _netdev,allow_other,--file-mode=0666,--dir-mode=0777 0 0
FUSE 설정에서 allow_other 허용
sudo vim /etc/fuse.conf
# 다음 라인의 주석 제거
user_allow_other
자동 마운트 테스트
sudo mount -av
참고URL
- 변군이글루 블로그(Byeon-gun's Igloo Blog) : AWS Command Line Interface(AWS CLI)를 최신 버전으로 설치하는 방법
반응형
'리눅스' 카테고리의 다른 글
CentOS 7에서 Samba 공유 폴더를 클라이언트로서 마운트하는 방법 (0) | 2025.06.09 |
---|---|
우분투 22.04에서 Samba를 구성하고 Windows나 다른 Linux 시스템에서 공유 폴더에 접근하는 방법 (0) | 2025.06.09 |
우분투 20.04에서 Snap 완전히 제거하는 방법 (2) | 2025.06.05 |
CentOS 7에서 HPE의 ssacli 도구를 설치하는 방법 (0) | 2025.06.05 |
우분투에 Apache2의 확장 모듈인 Evasive 모듈을 설치하는 방법 (1) | 2025.06.04 |