一、下载minio client
wget http://dl.minio.org.cn/client/mc/release/linux-amd64/mc
chmod +x mc
二、添加server
./mc config host add minio-server https://xxx.xxx.xxx.xxx:9100 access-key secret-key --api s3v4 Added `minio-server` successfully.
./mc config host list gcs URL : https://storage.googleapis.com AccessKey : YOUR-ACCESS-KEY-HERE SecretKey : YOUR-SECRET-KEY-HERE API : S3v2 Path : dns Src : /home/apps/.mc/config.json local URL : http://localhost:9000 AccessKey : access-key
SecretKey : secret-key
API : Path : auto Src : /home/apps/.mc/config.json minio-server URL : https://xx.xxx.xxx.xxx:9100 AccessKey :
SecretKey : xxxxxxxxxx API : s3v4 Path : auto Src : /home/apps/.mc/config.json play URL : https://play.min.io AccessKey : Q3AM3UQ867SPQQA43P2F SecretKey : zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG API : S3v4 Path : auto Src : /home/apps/.mc/config.json s3 URL : https://s3.amazonaws.com AccessKey : YOUR-ACCESS-KEY-HERE SecretKey : YOUR-SECRET-KEY-HERE API : S3v4 Path : dns Src : /home/apps/.mc/config.json
三、删除添加的server
./mc config host remove minio-server
四、查看指定server的存储桶
./mc ls minio-server [0001-01-01 08:05:43 LMT] 0B partner/ [0001-01-01 08:05:43 LMT] 0B partner-static/ [0001-01-01 08:05:43 LMT] 0B train/ [2024-07-02 10:58:12 CST] 0B trains-static/
五、查看指定桶对象内容
./mc ls minio-server/partner-static/ [2024-09-12 17:08:56 CST] 9.8KiB STANDARD 话术导入模板.xlsx [2024-10-15 14:57:47 CST] 0B tmp/
六、查看指定对象
./mc cat minio-server/partner-static/话术导入模板.xlsx
七、下载执行对象
./mc get minio-server/partner-static/话术导入模板.xlsx /home/apps/
标签:minio,mc,xxx,server,client,使用,home,config From: https://www.cnblogs.com/sky-cheng/p/18467408