马孔多不下雪

Head Pic: 「miku ~ Merry Christmas!2018」/「千夜QYS3」のイラスト [pixiv]

For more information, please go to the official document

Main features

We can mount an Alibabacloud Object Storage Server(oss) on a linux server via ossfs.

Then we can use oss just like using common local file systems.

Usage

Download & configure

At first, download following packages.

ubuntu version Links
ubuntu 16.04 (x64) ossfs_1.80.5_ubuntu16.04_amd64.deb
ubuntu 14.04 (x64) ossfs_1.80.5_ubuntu14.04_amd64.deb

Then run these commands to install it:

1
2
3
sudo apt update
sudo apt install gdebi-core
sudo gdebi your_ossfs_package

Before mounting the oss on your server, you need to set an access key like this:

1
2
echo my-bucket:my-access-key-id:my-access-key-secret > /etc/passwd-ossfs
chmod 640 /etc/passwd-ossfs

Replace the fields by your own.

Mount

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

my-mount-point is a directory where you want to mount the oss(Remember that it must be existed and empty.).

Unmount

1
fusermount -u my-mount-point