美文网首页
Digital Ocean如何挂载spaces

Digital Ocean如何挂载spaces

作者: 马丁的早辰 | 来源:发表于2018-04-24 15:39 被阅读0次

    install

    https://github.com/s3fs-fuse/s3fs-fuse

    sudo yum install -y automake fuse fuse-devel gcc-c++ git libcurl-devel libxml2-devel make openssl-devel

    git clone https://github.com/s3fs-fuse/s3fs-fuse.git

    cd s3fs-fuse

    ./autogen.sh

    ./configure

    make

    sudo make install


    config

    ~/.passwd-s3fs 加入:$SPACES_KEY:$SPACES_SECRET 并把权限改为600

    6NCLG56RSQ4OZFK5SPN7:SYufdu3hYvukyp7HHluydMQlaSJ2JuUO2TooJHQu9Wg

    /etc/fuse.conf 打开:user_allow_other

    mount

    https://www.digitalocean.com/community/questions/mount-point-with-spaces

    s3fs movie101 /mnt/movie101 -o url=https://sgp1.digitaloceanspaces.com -o allow_other -o use_cache=/tmp


    unmount

    fusermount -u [directory]

    相关文章

      网友评论

          本文标题:Digital Ocean如何挂载spaces

          本文链接:https://www.haomeiwen.com/subject/wtejlftx.html