IT기술/AWS
[AWS] S3 마운트를 위한 goofys 설치
IT곰곰
2022. 5. 16. 09:05
반응형
주의! s3 마운트를 진행하면 발생하는 이슈는 AWS에서 지원하지 않습니다.
1. golang 설치
# yum install golang fuse
2. go 환경 설정
- 디렉터리 생성
# mkdir -p /usr/local/golang
- 환경 변수 설정
# cd ~
# vi ./.bash_profile
-> 내용 추가
export GOROOT=/usr/lib/golang
export GOBIN=$GOROOT/bin
export GOPATH=/usr/local/golang
export PATH=$PATH:$GOROOT/bin
- 환경 변수 적용
# source ./bash_profile
- 정상 적용 확인
# go env
3. goofys 설치
- 프로그램 다운로드
# go get github.com/kahing/goofys
# go install github.com/kahing/goofys
- 정상 설치 확인
# goofys
- NAS 및 S3 마운트
goofys -o allow_other --dir-mode=0755 --file-mode=0755 --uid=601 --gid=601 <s3 명> <서버 내 마운트 경로>
반응형