也许你的网络没通?
最少的条目 - 只有一个选项(_netdev
= 网络“启动”后安装)
<bucket name> <mount point> fuse.s3fs _netdev, 0 0
我运行的是 Ubuntu 16.04,多个安装工作正常/etc/fstab
.
示例类似于我用于 ftp 图像上传的示例(使用额外的存储桶安装点进行测试):
mybucket1.mydomain.org /mnt/mybucket1 fuse.s3fs _netdev,allow_other,passwd_file=/home/ftpuser/.passwd-aws-s3fs,default_acl=public-read,uid=1001,gid=65534 0 0
mybucket2.mydomain.org /mnt/mybucket2 fuse.s3fs _netdev,allow_other,passwd_file=/home/ftpuser/.passwd-aws-s3fs,default_acl=public-read,uid=1001,gid=65534 0 0
sudo mount -a
测试新条目并安装它们(然后进行重新启动测试)。
如果您希望以非 root 身份挂载,请按照上面的说明查看 UID、GID 选项。如果使用熔断器选项,这并不是绝对必要的allow_other
因为安装时的权限为“0777”。
警告:Updatedb https://man7.org/linux/man-pages/man1/updatedb.1.html (the locate
命令使用此)索引您的系统。您应该检查一下PRUNEFS
or PRUNEPATHS
in /etc/updatedb.conf
涵盖您的 s3fs 文件系统或 s3fs 挂载点。默认设置是“修剪”任何 s3fs 文件系统,但值得检查。否则,如果存储桶中有很多文件,不仅您的系统会变慢,而且您的 AWS 费用也会增加。请参阅常见问题解答链接了解更多信息。
参考:
https://github.com/s3fs-fuse/s3fs-fuse/wiki/Fuse-Over-Amazon https://github.com/s3fs-fuse/s3fs-fuse/wiki/Fuse-Over-Amazon
https://github.com/s3fs-fuse/s3fs-fuse/wiki/FAQ https://github.com/s3fs-fuse/s3fs-fuse/wiki/FAQ