您好,登錄后才能下訂單哦!
sudo apt-get install automake autotools-dev \fuse g++ git libcurl4-gnutls-dev libfuse-dev \libssl-dev libxml2-dev make pkg-config
git clone https://github.com/s3fs-fuse/s3fs-fuse.git
cd s3fs-fuse
sudo ./autogen.sh
sudo ./configure
sudo make
sudo make install
sudo vim /etc/passwd-s3fs
key format: AKIAJExxxxxxxxxxxxxxxxxxxxxxx:Gcdpi2axxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
sudo chmod 640 /etc/passwd-s3fs
sudo mkdir -p /s3/folder-name
sudo s3fs -o allow_other bucket-name /s3/folder-name
中國區AWS S3掛載路徑不同:
sudo s3fs -o allow_other bucket-name /s3/folder-name -o url=https://s3.cn-north-1.amazonaws.com.cn
取消掛載:
sudo umount -l /s3/folder-name
寫入/etc/fstab 實現開機自動掛載
sudo vim /etc/fstab
bucket-name /s3/folder-name fuse.s3fs _netdev,allow_other 0 0
參考文檔:http://www.whiteboardcoder.com/2017/12/how-to-mount-s3-bucket-as-hard-drive.html
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。