minio 安裝以及使用


1. 為了方便使用 docker 安裝
 
docker run -p 9000:9000 minio/minio server /export
 
注意啟動顯示的 appkey secretkey 
Created minio configuration file successfully at /root/.minio
Endpoint: http://192.16.50.11:9000 http://127.0.0.1:9000
AccessKey:5D2Q3FZ04LW4DIDW7R22
SecretKey: C98uUVskiHjPaVmjTBPFdE6rh+wOJKtQIn1wvqvv
BrowserAccess:
http://192.16.50.11:9000 http://127.0.0.1:9000
Command-line Access: https://docs.minio.io/docs/minio-client-quickstart-guide
$ mc config host add myminio http://192.16.50.11:9000 5D2Q3FZ04LW4DIDW7R22 C98uUVskiHjPaVmjTBPFdE6rh+wOJKtQIn1wvqvv
Object API (Amazon S3 compatible):
Go: https://docs.minio.io/docs/golang-client-quickstart-guide
Java: https://docs.minio.io/docs/java-client-quickstart-guide
Python: https://docs.minio.io/docs/python-client-quickstart-guide
JavaScript: https://docs.minio.io/docs/javascript-client-quickstart-guide
.NET: https://docs.minio.io/docs/dotnet-client-quickstart-guide
DriveCapacity:33GiBFree,39GiBTotal
 
2. 登錄瀏覽器
 
   輸入 appkey  secretkey  
   界面如下:
   
 
   
3. 具體的頁面操作就比較簡單了
      創建bulk
      
      上傳文件
      
 
      
 
4.  客戶端使用以及文件操作
 
   下載客戶端工具
 
   
 
    配置格式如下:
mc config host add <ALIAS><YOUR-S3-ENDPOINT><YOUR-ACCESS-KEY><YOUR-SECRET-KEY><API-SIGNATURE>

   具體使用

mc config host add dalong http://127.0.0.1:9000 76PW7KAW0TLGZ0D3MEYE CIVJihBKyXO356pKyn3jBIGZI6kbLq62W57UKeSe S3v4

 具體操作

 mc  ls   dalong 
 
 mc  cp -r * dalong/demo
 mc   ls dalong/demo
 
5. 命令大全
 
ls List files and folders.
mb Make a bucket or folder.
cat Display contents of a file.
pipe Write contents of stdin to target.When no target is specified, it writes to stdout.
share Generate URL for sharing.
cp Copy one or more objects to a target.
mirror Mirror folders recursively from a single source to single destination.
diff Compute differences between two folders.
rm Remove file or bucket [WARNING:Usewith care].
events Manage bucket notification.
watch Watchfor events on object storage and filesystem.
policy Setpublic policy on bucket or prefix.
session Manage saved sessions of cp and mirror operations.
config Manage configuration file.
update Checkfor a new software update.
version Print version.
 
6. 后續拓展
   集成docker   集成k8s 以及作為系統的分布式存儲


免責聲明!

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



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