feat: add minio reference (#813)
* feat: add minio reference * fix:alter minio.md
This commit is contained in:
		@@ -84,6 +84,7 @@ Quick Reference
 | 
				
			|||||||
[Pytorch](./docs/pytorch.md)<!--rehype:style=background: rgb(238 76 44);&class=contributing tag&data-lang=Python&data-info=👆看看还缺点儿什么?-->  
 | 
					[Pytorch](./docs/pytorch.md)<!--rehype:style=background: rgb(238 76 44);&class=contributing tag&data-lang=Python&data-info=👆看看还缺点儿什么?-->  
 | 
				
			||||||
[Jupyter](./docs/jupyter.md)<!--rehype:style=background: rgb(0 72 153);&class=tag&data-lang=Python-->
 | 
					[Jupyter](./docs/jupyter.md)<!--rehype:style=background: rgb(0 72 153);&class=tag&data-lang=Python-->
 | 
				
			||||||
<!--rehype:class=home-card-->
 | 
					<!--rehype:class=home-card-->
 | 
				
			||||||
 | 
					[Minio](./docs/minio.md)<!--rehype:style=background: rgb(199 44 72));&class=tag-->
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## 配置
 | 
					## 配置
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										5
									
								
								assets/minio.svg
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								assets/minio.svg
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,5 @@
 | 
				
			|||||||
 | 
					<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 162.612 24.465" xmlns:v="https://vecta.io/nano">
 | 
				
			||||||
 | 
					    <path
 | 
				
			||||||
 | 
					        d="M52.751.414h9.108v23.63h-9.108zM41.711.74l-18.488 9.92a.919.919 0 0 1-.856 0L3.879.74A2.808 2.808 0 0 0 2.558.414h-.023A2.4 2.4 0 0 0 0 2.641v21.376h9.1V13.842a.918.918 0 0 1 1.385-.682l10.361 5.568a3.634 3.634 0 0 0 3.336.028l10.933-5.634a.917.917 0 0 1 1.371.69v10.205h9.1V2.641A2.4 2.4 0 0 0 43.055.414h-.023a2.808 2.808 0 0 0-1.321.326zm65.564-.326h-9.237v10.755a.913.913 0 0 1-1.338.706L72.762.675a2.824 2.824 0 0 0-1.191-.261h-.016a2.4 2.4 0 0 0-2.535 2.227v21.377h9.163V13.275a.914.914 0 0 1 1.337-.707l24.032 11.2a2.813 2.813 0 0 0 1.188.26 2.4 2.4 0 0 0 2.535-2.227zm7.161 23.63V.414h4.191v23.63zm28.856.421c-11.274 0-19.272-4.7-19.272-12.232C124.02 4.741 132.066 0 143.292 0s19.32 4.7 19.32 12.233-7.902 12.232-19.32 12.232zm0-21.333c-8.383 0-14.84 3.217-14.84 9.1 0 5.926 6.457 9.1 14.84 9.1s14.887-3.174 14.887-9.1c0-5.883-6.504-9.1-14.887-9.1z"
 | 
				
			||||||
 | 
					        fill="#c72c48" />
 | 
				
			||||||
 | 
					</svg>
 | 
				
			||||||
| 
		 After Width: | Height: | Size: 1013 B  | 
							
								
								
									
										107
									
								
								docs/minio.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										107
									
								
								docs/minio.md
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,107 @@
 | 
				
			|||||||
 | 
					MinIO 备忘清单
 | 
				
			||||||
 | 
					===
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					这是 MinIO 语法的快速参考备忘单。
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					MinIO 快速参考
 | 
				
			||||||
 | 
					----
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					### 基本概念
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- **对象存储**:存储非结构化数据,如图片、视频等。
 | 
				
			||||||
 | 
					- **桶(Bucket)**:MinIO中存储对象的容器,类似于文件夹。
 | 
				
			||||||
 | 
					- **对象(Object)**:桶中存储的具体数据。
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					###  安装MinIO
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- 从[MinIO官网](https://min.io/download)下载对应平台的MinIO服务器。
 | 
				
			||||||
 | 
					- 根据操作系统的指南进行安装。
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					### 启动MinIO服务
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- 运行MinIO服务器,通常使用以下命令:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  ```shell
 | 
				
			||||||
 | 
					  minio server /export/data1 /export/data2 /export/data3 /export/data4
 | 
				
			||||||
 | 
					  ```
 | 
				
			||||||
 | 
					- 其中`/export/data1`等是存储数据的路径。
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					### 访问MinIO
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- 使用Web界面访问MinIO,通常是`http://127.0.0.1:9000`。
 | 
				
			||||||
 | 
					- 使用客户端工具,如`mc`命令行工具。
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					### minio client 安装
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- 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
 | 
				
			||||||
 | 
					  
 | 
				
			||||||
 | 
					  **版本比较多,请去官网查找安装步骤**
 | 
				
			||||||
 | 
					  
 | 
				
			||||||
 | 
					  ```sh
 | 
				
			||||||
 | 
					  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 连接服务操作
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- 列出所有别名:`mc alias list` 
 | 
				
			||||||
 | 
					- 添加服务别名:`mc alias set myminio https://myminio.example.net minioadminuser minioadminpassword`
 | 
				
			||||||
 | 
					- 删除服务别名:`mc alias rm myminio`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					### mc 桶操作
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- 创建桶:`mc mb myminio/mybucket`
 | 
				
			||||||
 | 
					- 删除桶:`mc rb myminio/mybucket`
 | 
				
			||||||
 | 
					- 设置桶策略:`mc policy set download myminio/mybucket`
 | 
				
			||||||
 | 
					- 设置桶生命周期:`mc ilm import myminio/mybucket`
 | 
				
			||||||
 | 
					### mc 文件操作
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- 列出文件:`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 文件夹操作
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- 列出文件夹:`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 其他操作
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- 列出所有桶:`mc ls myminio`
 | 
				
			||||||
 | 
					- 显示帮助信息:`mc  help`
 | 
				
			||||||
 | 
					- 版本信息:`mc version`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					### 扩展阅读
 | 
				
			||||||
 | 
					- [MinIO官方文档](https://min.io/docs/minio/kubernetes/upstream/)
 | 
				
			||||||
 | 
					- [MinIO github 源码](https://github.com/minio/minio)
 | 
				
			||||||
		Reference in New Issue
	
	Block a user