리눅스
우분투 22.04에서 goofys를 사용하여 Amazon S3 버킷을 마운트하는 방법
변군이글루
2025. 6. 9. 10:44
반응형
우분투 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)를 최신 버전으로 설치하는 방법
반응형