s3fs+minio模擬掛載S3服務器到本地服務器


1、minio: https://github.com/minio/minio,按照文檔選擇系統安裝

2、安裝s3fs客戶端:https://github.com/s3fs-fuse/s3fs-fuse

3、啟動mino,獲取AccessKey和SecretKey並創建桶名

4、在客戶端上echo "AccessKey:SecretKey" > /etc/.passwd-s3fs  chmod 600 /etc/.passwd-s3fs

5、s3fs -o passwd_file=/etc/.passwd-s3fs -o url=http://192.168.1.82:9000 -o allow_other -o nonempty -o no_check_certificate -o use_path_request_style -o umask=000 bucketname /data/

6、df -h查看是否掛載成功,如果不成功,可以加參數-d -d -f -o f2 -o curldbg輸出日志,客戶端與minio服務器系統時間要同步


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM