Skip to content

Deploy MinIO Service⚓︎


1 Preparation⚓︎

1.1 Enviroment Information⚓︎

  • Information of MinIO:

2 Install and deploy Docker⚓︎

2.1 Install Docker⚓︎

yum install -y yum-utils device-mapper-persistent-data lvm2
yum-config-manager --add-repo
sed -i '' /etc/yum.repos.d/docker-ce.repo
yum makecache fast
yum -y install docker-ce

2.2 Configure Docker⚓︎

mkdir /etc/docker/
vi /etc/docker/daemon.json
  "live-restore": true,
  "registry-mirrors": ["", "", ""],
  "log-driver": "json-file",
  "log-opts": {"max-file": "3", "max-size": "10m"}

2.3 Start Docker⚓︎

systemctl enable docker
systemctl start docker

3 Install and deploy MinIO⚓︎

3.1 Download MinIO Image⚓︎

docker pull minio/minio:latest
latest: Pulling from minio/minio
a591faa84ab0: Pull complete
76b9354adec6: Pull complete
f9d8746550a4: Pull complete
890b1dd95baa: Pull complete
3a8518c890dc: Pull complete
8053f0501aed: Pull complete
506c41cb8532: Pull complete
Digest: sha256:e7a725edb521dd2af07879dad88ee1dfebd359e57ad8d98104359ccfbdb92024
Status: Downloaded newer image for minio/minio:latest

3.2 Create a persistent data directory of MinIO⚓︎

mkdir -p /opt/jumpserver/minio/data /opt/jumpserver/minio/config

3.3 Start MinIO Service⚓︎

## Please modify the account password yourself and remember it. If it is lost, you can delete the container and recreate it with a new password; your data will not be lost
# 9000                                  # access port of api 
# 9001                                  # access port of console 
# MINIO_ROOT_USER=minio                 # account of minio 
# MINIO_ROOT_PASSWORD=KXOeyNgDeTdpeu9q  # password of minio 
docker run --name jms_minio -d -p 9000:9000 -p 9001:9001 -e MINIO_ROOT_USER=minio -e MINIO_ROOT_PASSWORD=KXOeyNgDeTdpeu9q -v /opt/jumpserver/minio/data:/data -v /opt/jumpserver/minio/config:/root/.minio --restart=always minio/minio:latest server /data --console-address ":9001"

3.5 Create Buckets in MinIO⚓︎

  • Visit,and login with account and password you just set
  • Navigate to the Buckets section in the left-side menu, choose Create Bucket, enter 'jumpserver' as the Bucket Name, and then click Save to create the bucket

3.6 Configure MinIO in JumpServer⚓︎

  • Visit JumpServer Web page and login with account of administrator.
  • Navigate to the [Terminal Management] in the left-side menu. At the top of the page, select [Storage Configuration]. Under [Recording Storage], choose [Create] and select [Ceph].
  • Please fill out the details according to the instructions below, save the changes, and then update all components on the [Terminal Management] page. Select [jms-mino] for recording storage and submit.
Option Refer Value Description
Name (Name) jms-minio Identifier, must be unique
Type (Type) Ceph Fixed, can not be changed
Bucket name (Bucket) jumpserver Bucket Name
Access key minio MINIO_ROOT_USER
Endpoint (Endpoint) Visit address of minio service
Default Storage New components will automatically use this storage