digital ocean如何掛載spaces
1. 安裝
地址: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
2. 配置
~/.passwd-s3fs 加入:$SPACES_KEY:$SPACES_SECRET 並把許可權改為600
6NCLG56RSQ4OZFK5SPN7:SYufdu3hYvukyp7HHluydMQlaSJ2JuUO2TooJHQu9Wg
/etc/fuse.conf 開啟:user_allow_other
3. 掛載
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
4. 解除安裝
fusermount -u [directory]
「其他文章」
- mongodb資料分片
- ES如何關閉提前快取nested資料
- nodejs如何編譯成二進位制檔案執行
- k8s新增預設本地磁碟
- docker pull改成國內映象
- 阿里雲映象安裝kubeadm和kubernetes
- selinux的開啟和關閉
- git如何刪除所有tag(本地和遠端)
- 【pkg】把node.js打包成多平臺二進位制可執行檔案
- 瀏覽器監聽所有xhr請求
- elasticsearch如何搜尋巢狀內容
- 【express-basic-auth】瀏覽器內建登陸
- 【lru-cache】node.js的自動淘汰快取
- docker之ffmpeg多階段構建
- mysql如何統計資料庫大小
- node.js獲取客戶端的真實ip地址
- killall命令如何安裝
- digital ocean如何掛載spaces
- 【he】node.js如何方便地HTML轉義
- mac如何開啟身份不明開發者的程式