这是 MinIO 语法的快速参考备忘单。
运行MinIO服务器,通常使用以下命令:
minio server /export/data1 /export/data2 /export/data3 /export/data4
其中/export/data1
等是存储数据的路径。
http://127.0.0.1:9000
。mc
命令行工具。windows
下载
https://dl.min.io/client/mc/release/windows-amd64/mc.exe
\path\to\mc.exe --help
mac
安装
brew install minio/stable/mc
mc --help
linux
版本比较多,请去官网查找安装步骤
curl https://dl.min.io/client/mc/release/linux-amd64/mc \
--create-dirs \
-o $HOME/minio-binaries/mc
chmod +x $HOME/minio-binaries/mc
export PATH=$PATH:$HOME/minio-binaries/
mc alias list
mc alias set myminio https://myminio.example.net minioadminuser minioadminpassword
mc alias rm myminio
mc mb myminio/mybucket
mc rb myminio/mybucket
mc policy set download myminio/mybucket
mc ilm import myminio/mybucket
mc ls myminio/mybucket
mc cp /path/to/file myminio/mybucket/file
mc cp myminio/mybucket/file /path/to/destination
mc rm myminio/mybucket/file
mc mv myminio/mybucket/file myminio/mybucket/newfile
mc cp myminio/mybucket/file myminio/mybucket/newfile
mc find myminio/mydata --name "*.jpg"
mc ls myminio/mybucket/folder
mc mb myminio/mybucket/folder
mc rb myminio/mybucket/folder
mc mv myminio/mybucket/folder myminio/mybucket/newfolder
mc cp myminio/mybucket/folder myminio/mybucket/newfolder
mc rm --recursive myminio/mybucket/folder
mc ls --recursive myminio/mybucket/folder
mc ls --recursive --include-folders myminio/mybucket/folder
mc ls myminio
mc help
mc version