For more information, please go to the official document
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.
At first, download following packages.
|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:
sudo apt update
Before mounting the oss on your server, you need to set an access key like this:
echo my-bucket:my-access-key-id:my-access-key-secret > /etc/passwd-ossfs
Replace the fields by your own.
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.).
fusermount -u my-mount-point