Documentation

Documentation

mc admin service

Description

The mc admin service command can restart or stop MinIO servers.

mc admin service affects all MinIO servers in the target deployment at the same time. The command interrupts in-progress API operations on the MinIO deployment. Exercise caution before issuing an update command on production environments.

Use mc admin on MinIO Deployments Only

MinIO does not support using mc admin commands with other S3-compatible services, regardless of their claimed compatibility with MinIO deployments.

Examples

Restart MinIO Servers in Target Deployment

The following example uses the default myminio alias. The myminio alias points to a local minio server running on port 9000. See <installation instructions> for more information on installing and running a local minio server instance.

See mc alias for more information on aliases.

mc admin service restart myminio

Stop MinIO Servers in Target Deployment

The following example uses the default myminio alias. The myminio alias points to a local minio server running on port 9000. See <installation instructions> for more information on installing and running a local minio server instance.

See mc alias for more information on aliases.

mc admin service stop myminio

Syntax

mc admin service has the following syntax:

mc admin service COMMAND [ARGUMENTS]

mc admin service supports the following commands:

restart

Restarts MinIO servers.

mc admin service restart has the following syntax:

mc admin service restart TARGET

Specify the alias of a configured MinIO deployment. restart restarts all MinIO servers in the deployment.

stop

Stops MinIO servers.

mc admin service stop has the following syntax:

mc admin service stop TARGET

Specify the alias of a configured MinIO deployment. stop stops all MinIO servers in the deployment.