Skip to content

Instantly share code, notes, and snippets.

@qzm
Last active May 12, 2020 09:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qzm/0cd962ec53bce6e137024651d12ce2da to your computer and use it in GitHub Desktop.
Save qzm/0cd962ec53bce6e137024651d12ce2da to your computer and use it in GitHub Desktop.
ossfs config
#! /bin/bash
#
# ossfs Automount Aliyun OSS Bucket in the specified direcotry.
#
# chkconfig: 2345 90 10
# description: Activates/Deactivates ossfs configured to start at boot time.
# put into /etc/init.d/ossfs
# chmod a+x /etc/init.d/ossfs
# chkconfig ossfs on
ossfs bucket-name /mnt -ourl=oss-cn-hongkong-internal.aliyuncs.com -oallow_other -omax_stat_cache_size=100000
@qzm
Copy link
Author

qzm commented May 12, 2020

  • put into /etc/init.d/ossfs
  • chmod a+x /etc/init.d/ossfs
  • chkconfig ossfs on

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment