mc admin service 子命令用来重启或停止所有 MinIO 服务器,语法如下:
C:\>mc admin service -h NAME: mc admin service - restart and stop all MinIO servers USAGE: mc admin service COMMAND [COMMAND FLAGS | -h] [ARGUMENTS...] COMMANDS: restart restart all MinIO servers stop stop MinIO server FLAGS: --config-dir value, -C value path to configuration folder (default: "C:\\Users\\Administrator\\mc") --quiet, -q disable progress bar display --no-color disable color theme --json enable JSON lines formatted output --debug enable debug output --insecure disable SSL certificate verification --help, -h show help
上面命令中,可以通过 restart 重启 MinIO 服务,也可以使用 stop 停止 MinIO 服务。
(1)重启本地别名为 local 的 MinIO 存储服务。
D:\server\minio> mc admin service restart local Restart command successfully sent to `local`. Type Ctrl-C to quit or wait to follow the status of the restart process. .............................................................
(2)停止本地别名为 local 的 MinIO 存储服务。
D:\server\minio> mc admin service stop local Stopped `local` successfully.