The server mounts Alibaba Cloud oss

1. Download the oss installation package

wget http://docs-aliyun.cn-hangzhou.oss.aliyun-inc.com/assets/attach/32196/cn_zh/1507811577850/ossfs_1.80.3_centos7.0_x86_64.rpm

 

2. Installation

sudo yum localinstall ossfs_1.80.3_centos7.0_x86_64.rpm

 

3. Set the bucket name and AccessKeyId/Secret information and store them in the /etc/passwd-ossfs file

echo my-bucket:my-access-key-id:my-access-key-secret > /etc/passwd-ossfs

 

4.chmod 640 /etc/passwd-ossfs

 

5. Mount the OSS bucket to the specified mounter directory.

ossfs my-bucket my-mount-point -ourl=my-oss-endpoint

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324767599&siteId=291194637