Last active
May 12, 2020 09:48
-
-
Save qzm/0cd962ec53bce6e137024651d12ce2da to your computer and use it in GitHub Desktop.
ossfs config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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 |
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