-
mount to s3 with s3fs on redhat(centos)aws 2020. 11. 4. 16:41728x90
필요 패키지 설치
yum install automake fuse-devel gcc-c++ git libcurl-devel libxml2-devel make openssl-devel -ys3fs-fuse 소스 다운로드
git clone github.com/s3fs-fuse/s3fs-fuse.gits3fs-fuse 소스 컴파일
cd s3fs-fuse ./autogen.sh ./configure make make installaws access key와 secret key를 key default path 인 /etc/passwd-s3fs 에 생성
echo aws_access_key_id:aws_secret_access_key > /etc/passwd-s3fs chmod 600 /etc/passwd-s3fss3 mount
/usr/local/bin/s3fs s3-access-data /mnt/s3-access-data마운트 할 디렉토리 생성 후
리부팅 시 자동으로 mount 될 수 있도록 설정 (redhat 계열 7 이상부터는 rc-local을 활성화 시켜주어야 한다)
mkdir /mnt/s3-access-data vi /etc/rc.local /usr/local/bin/s3fs s3-access-data /mnt/s3-access-data chmod +x /etc/rc.d/rc.local systemctl enable rc-local systemctl start rc-local'aws' 카테고리의 다른 글
aws cloudwatch memory monitoring 추가 (0) 2020.11.11 동일한 vpc 내에 public subnet 과 private subnet ssm agent 적용 방법 (0) 2020.11.10 ssm agent 설치 (centos) (0) 2020.11.09 boto3 패키지를 사용한 s3 권한 확인 업로드 테스트 (using boto3 for s3 upload test) (0) 2020.11.06 Jupyterhub 구축 가이드 (0) 2020.11.02