AliCloud OSS-ECS연동 방법(요약)

* OSS 설치 (Ubuntu 14.04 이상 버전 설치 방법)
sudo apt-get install automake autotools-dev g++ git libcurl4-gnutls-dev \
libfuse-dev libssl-dev libxml2-dev make pkg-config

git clone https://github.com/aliyun/ossfs.git

./cd ossfs
./autogen.sh
./configure
make
make install

* AccessKey 정보
accessKeyId : LTAIvIBzIOFtn87i
Access Key Secret : KnYfUqOnPEvaiVTh6qNIh8V2dbcajo
echo web-repository:LTAIvIBzIOFtn87i: KnYfUqOnPEvaiVTh6qNIh8V2dbcajo> / etc / passwd-ossfs
echo dbms-repository:LTAIvIBzIOFtn87i: KnYfUqOnPEvaiVTh6qNIh8V2dbcajo> / etc / passwd-ossfs

su – root

chmod 640 /etc/passwd-ossfs

ossfs web-repository /home/ubuntu/lixing/Service/Data -ourl=oss-cn-shanghai-internal.aliyuncs.com

ossfs web-repository /home/ubuntu/lixing/Service/Data -ourl=oss-cn-shanghai-internal.aliyuncs.com -o allow_other

ossfs dbms-repository /home/lixing/DBRepository -ourl=oss-cn-shanghai-internal.aliyuncs.com

ossfs dbms-repository /home/lixing/DBRepository -ourl=oss-cn-shanghai-internal.aliyuncs.com -o allow_other

-o allow_other : 다른 User도 사용 가능(만약, 이 옵션이 없으면, Root 권한만 접근가능함.)

답글 남기기

이 사이트는 스팸을 줄이는 아키스밋을 사용합니다. 댓글이 어떻게 처리되는지 알아보십시오.