Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用 s3fs 替代 ossfs #137

Open
weaming opened this issue Aug 9, 2020 · 0 comments
Open

使用 s3fs 替代 ossfs #137

weaming opened this issue Aug 9, 2020 · 0 comments

Comments

@weaming
Copy link

weaming commented Aug 9, 2020

From macOS挂载阿里云OSS | 万骏的博客

Replace ossfs with s3fs

Setup

brew cask install osxfuse  # then reboot to take effect
brew install s3fs

The format of $HOME/.passwd-s3fs: $AccessKeyID:$AccessKeySecret

fish shell to mount and unmount:

function s3fs-mount-oss -a unmount
    set -l mountpoint $HOME/Downloads/oss
    if not test -z $unmount
        diskutil unmount $mountpoint
    end

    s3fs weaming-files:/s3fs $mountpoint \
        -o url=https://oss-cn-shenzhen.aliyuncs.com \
        -o passwd_file=$HOME/.passwd-s3fs \
        -o use_cache=$HOME/.cache/oss
end
@weaming weaming mentioned this issue Aug 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant