Install MiniIO object storage service environment on docker on Centos

Object Storage Service OSS (Object Storage Service) is a massive, secure, low-cost, and highly reliable cloud storage service, suitable for storing any type of file . Elastic expansion of capacity and processing power, multiple storage types to choose from, and comprehensive optimization of storage costs.

MinIO is the world's leading object storage pioneer and currently has millions of users around the world. On standard hardware, the read/write speed is as high as 183 GB/sec and 171 GB/sec. Object storage can act as the main storage layer to handle various complex workloads such as Spark, Presto, TensorFlow, H2O.ai and become a replacement for Hadoop HDFS. MinIO is used as the primary storage for cloud-native applications that require higher throughput and lower latency than traditional object storage.

Minio is an open source object storage suite written in Golang and based on the Apache License v2.0 open source protocol. Although it is lightweight, it has good performance. It is compatible with Amazon S3 cloud storage service interface. It can be easily combined with other applications, such as NodeJS, Redis, MySQL, etc. MinIO is 100% open source based on Apache V2 license. This means that MinIO customers can use and integrate MinIO automatically, unlimitedly and freely, freely innovate and create, freely modify, and freely redistribute new versions and software. Indeed, MinIO has strong support and Driven many Fortune 500 companies. In addition, the variety and specialization of its deployment provides advantages unmatched by other software.

Install the MiniIO object storage service environment on docker on Centos:

#Step 1: Create a minio dedicated file directory, folder permissions can be set as needed

mkdir -p /app/miniature/data

mkdir -p /app/minio/config

chmod -R 777 /app/minio/data

chmod -R 777 /app/mini/config

#Step 2: docker installs the minio object storage environment: 

docker run -p 9010:9000 -p 9000:9010 --name minio --restart=always -d -v /app/minio/data:/data -v /app/minio/config:/etc/minio -e " MINIO_ACCESS_KEY=minio@usr" -e "MINIO_SECRET_KEY=minio@pwd" minio/minio server /data --console-address ":9000" --address ":9010"

MINIO_ACCESS_KEY and MINIO_SECRET_KEY parameter deprecation warning:

WARNING: MINIO_ROOT_USER and MINIO_ROOT_PASSWORD are deprecated

Or use the install command:

docker run -p 9010:9000 -p 9000:9010 --name minio --restart=always -d -v /app/minio/data:/data -v /app/minio/config:/etc/minio -e " MINIO_ROOT_USER=minio@usr" -e "MINIO_ROOT_PASSWORD=minio@pwd" minio/minio server /data --console-address ":9000" --address ":9010" 

 Parameter Description:

Here, the api port is agreed to be 9000, and the web access console port is 9010

1. Expose two ports: -p 9010:9000 -p 9000:9010

2. Set the static port: --console-address ":9000" --address ":9010"

3. Check the port after installing MinIO: docker logs minio

#Step 3: Open ports 9000 and 9010

1. Open the port, use the parameter --remove-port when closing the port

firewall-cmd --zone=public --add-port=9000/tcp --permanent # Open port 9000

firewall-cmd --zone=public --add-port=9010/tcp --permanent # Open port 9010

firewall-cmd --reload # configuration takes effect immediately

2. View all open ports on the firewall

firewall-cmd --zone=public --list-ports

#Step 4: Access the MinIO console

    Access address: http://IP:9010
    User name: minio@usr
    Password: minio@pwd

Guess you like

Origin blog.csdn.net/u014698745/article/details/122025423