我使用 S3fs 将我的 S3 存储桶安装到我的 EC2 实例,并且我能够读取和写入我的 S3 存储桶。但是在重新启动我的 EC2 实例后,S3 存储桶会自动卸载。 我发现要让它持久化并在每次重启时自动挂载,我们需要将以下条目添加到/etc/rc.local
/usr/bin/s3fs myS3bucket -o use_cache=/tmp -o allow_other -o multireq_max=5/myS3bucket
但它仍然没有在重启时安装。
最佳答案
你通过官方了吗documentation ?
You can also mount on boot by entering the following line to /etc/fstab:
s3fs#mybucket /path/to/mountpoint fuse _netdev,allow_other 0 0
or
(…)
Note2: You may also need to make sure netfs service is start on boot
网络挂载首先需要网络访问。
关于javascript - 重新启动 EC2 实例后,AWS S3 存储桶未重新安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58743636/