在windows上使用minio

参考 https://www.minio.org.cn/download.shtml#/windows 给出的步骤

复制代码
C:\d>curl -LO https://dl.minio.org.cn/server/minio/release/windows-amd64/minio.exe
  % Total    % Received % Xferd  Average Speed  Time    Time    Time   Current
                                 Dload  Upload  Total   Spent   Left   Speed
100 107.6M 100 107.6M   0      0 23.47M      0   00:04   00:04         22.99M

C:\d>curl -LO https://dl.minio.org.cn/client/mc/release/windows-amd64/mc.exe
  % Total    % Received % Xferd  Average Speed  Time    Time    Time   Current
                                 Dload  Upload  Total   Spent   Left   Speed
100 30.00M 100 30.00M   0      0 35.16M      0                              0

启动服务端

复制代码
C:\d>set MINIO_ROOT_USER=admin

C:\d>set MINIO_ROOT_PASSWORD=password

C:\d>minio.exe server c:\d\data --console-address ":9001"
INFO: Formatting 1st pool, 1 set(s), 1 drives per set.
INFO: WARNING: Host local has more than 0 drives of set. A host failure will result in data becoming unavailable.
MinIO Object Storage Server
Copyright: 2015-2026 MinIO, Inc.
License: GNU AGPLv3 - https://www.gnu.org/licenses/agpl-3.0.html
Version: RELEASE.2025-07-23T15-54-02Z (go1.24.5 windows/amd64)

API: http://192.168.1.27:9000  http://172.31.176.1:9000  http://127.0.0.1:9000
   RootUser: admin
   RootPass: password

WebUI: http://192.168.1.27:9001 http://172.31.176.1:9001 http://127.0.0.1:9001
   RootUser: admin
   RootPass: password

CLI: https://min.io/docs/minio/linux/reference/minio-mc.html#quickstart
   $ mc alias set 'myminio' 'http://192.168.1.27:9000' 'admin' 'password'

Docs: https://docs.min.io

用客户端访问,注意服务端打出的CLI提示是错的,不应该有单引号

复制代码
C:\d>mc alias set 'myminio' 'http://192.168.1.27:9000' 'admin' 'password'
mc: Configuration written to `C:\Users\lt\mc\config.json`. Please update your access credentials.
mc: Successfully created `C:\Users\lt\mc\share`.
mc: Initialized share uploads `C:\Users\lt\mc\share\uploads.json` file.
mc: Initialized share downloads `C:\Users\lt\mc\share\downloads.json` file.
mc: <ERROR> Invalid alias. Alias `'myminio'` should have alphanumeric characters such as [helloWorld0, hello_World0, ...] and begin with a letter.

C:\d>mc alias set 'myminio2' 'http://192.168.1.27:9000' 'admin' 'password'
mc: <ERROR> Invalid alias. Alias `'myminio2'` should have alphanumeric characters such as [helloWorld0, hello_World0, ...] and begin with a letter.

C:\d>mc alias set myminio2 'http://192.168.1.27:9000' 'admin' 'password'
mc: <ERROR> Invalid URL. URL `'http://192.168.1.27:9000'` for MinIO Client should be of the form scheme://host[:port]/ without resource component.

C:\d>mc alias set myminio2 http://192.168.1.27:9000 admin password
Added `myminio2` successfully.

C:\d>mc admin info myminio2
●  192.168.1.27:9000
   Uptime: 13 minutes
   Version: 2025-07-23T15:54:02Z
   Network: 1/1 OK
   Drives: 1/1 OK
   Pool: 1

┌──────┬────────────────────────┬─────────────────────┬──────────────┐
│ Pool │ Drives Usage           │ Erasure stripe size │ Erasure sets │
│ 1st  │ 73.7% (total: 952 GiB) │ 1                   │ 1            │
└──────┴────────────────────────┴─────────────────────┴──────────────┘

82 B Used, 3 Buckets, 1 Object
1 drive online, 0 drives offline, EC:0

C:\d>

存储库https://github.com/minio/minio/已经被归档。

This repository was archived by the owner on Apr 25, 2026. It is now read-only.

最后一个版本是:

Releases RELEASE.2025-10-15T17-29-55Z

Security/CVE RELEASE.2025-10-15T17-29-55Z