Windows environment installation Minio tutorial

1. Download server and client files

download url
Download the server and client files for Windows

2. Create minio related directories

2. 1 手动创建minio应用程序目录,如:D:\minio\bin
2. 2 手动创建minio数据目录,如:D:\minio\data
2. 2 手动创建minio日志目录,如:D:\minio\logs

Put the two files downloaded in 1 into the D:\minio\bin directory

3. Start the minio service

3.1 Method 1

(1) Open the cmd window with administrator privileges and enter the directory where minio.exe is located, for example:

cd D:\minio\bin

(2) Set user name

setx MINIO_ROOT_USER myname

(3) Set login password

 setx MINIO_ROOT_PASSWORD mypassword

(4) Start Minio service

D:\minio\bin\minio.exe server D:\minio\data --console-address ":9001" --address ":9000" > D:\minio\logs\minio.log

3.2 Method 2

(1) Create a new minio.bat file in the D:\minio\bin directory, open it with an editor and write the following content

@echo off
REM 声明采用UTF-8编码
chcp 65001
echo.
echo [信息] 运行MinIO文服务器。
echo.
:: 设置窗口标题
title Minio文件服务

:: 设置用户名为myname
setx MINIO_ROOT_USER myname
:: 设置密码为mypassword
setx MINIO_ROOT_PASSWORD mypassword
 
cd %~dp0
:: 切换到minio.exe文件所在目录
cd D:\minio\bin
:: 启动minio服务
minio.exe server D:\minio\data --console-address ":9001" --address ":9000" > D:\minio\logs\minio.log
pause

(2) Double-click the minio.bat file in the D:\minio\bin directory to start the minio service

4. View minio version

# 管理员权限打开cmd窗口,进入到minio.exe所在目录
cd D:\minio\bin
# 使用如下命令查看版本信息
minio --version

5. Access the minio console

# 在浏览器输入服务器Ip + 端口号打开登录页面,然后使用前面步骤中设置的用户名和密码登录控制台
10.x.x.16:9001

Precautions

(a) If you don’t need the client, you don’t need to install it;
(b) 9001 in the tutorial is the console port, and 9000 is the service port.

Guess you like

Origin blog.csdn.net/HLXTU/article/details/130770881