MinIO is a high-performance object storage system designed as an alternative to cloud-native storage solutions. In fact, its API is fully compatible with Amazon S3.
This document provides a quick installation guide for MinIO. For advanced configurations (such as security settings), please configure according to your company’s specific requirements. Such configurations are beyond the scope of this document, and it is recommended to consult the official MinIO website for detailed information.
1. Install MinIO
Prepare an Ubuntu Machine
Download the latest version of MinIO:
wget https://dl.min.io/server/minio/release/linux-amd64/archive/minio.RELEASE.2023-04-13T03-08-07Z -O minio
chmod +x minio
mv minio /usr/local/bin/
After installation, verify it using the following command:
/usr/local/bin/minio --version
- Set MinIO Login Credentials
export MINIO_ROOT_USER=${USER}
export MINIO_ROOT_PASSWORD=${PASSWORD}Password must be at least 8 characters.
If credentials are not specified, the default username/password is
minioadmin.
Start MinIO Server
The server stores data in the /data directory and listens on the specified ports. In the example below:
Port 9001: Web Console
Port 9000: API Access
You can change the storage directory (e.g., store data on NAS) and listening addresses as needed.
Start MinIO server in the background (default uses HTTP; for HTTPS, see the HTTPS section below):
nohup /usr/local/bin/minio server /data --address :9000 --console-address :9001 &
- Check if the Service is Running (Port Listening Indicates Active)
ss -tulnp |grep minio
If the service does not start, check the logs for errors:
tail -f nohup.out
Using HTTPS Connection
Place your certificates in
/opt/minio/certs.Name the private key
private.keyand the public certificatepublic.crt.
The server will store data in /data and listen on the specified ports. In this example:
Port 9000: Web Console
Port 9001: API Access
Start MinIO server with HTTPS in the background:
nohup /usr/local/bin/minio server /data --address :9000 --console-address :9001 --certs-dir /opt/minio/certs &
2. Create a MinIO Bucket
Open a browser and go to http://<minio-server-ip>:9001
Enter your username
Enter your password
Click Login
| 1. 打開瀏覽器,輸入 minio server IP:9001 2. 輸入帳號 3. 輸入密碼 4. login |
Navigate to Buckets
Click Create Bucket
| 5. 進入 Buckets 6. 點選 「Create Bucket」 |
Enter a Bucket Name (custom name)
Click Create Bucket
Note: Other settings can be configured as needed. In this example, defaults are used.
| 7. Bucket Name:輸入自定義名稱 8. 點擊 Create Bucket PS:其他設定可以自己需求來設定,此範例為 off |
Bucket creation is now complete.
| 成功建立完成 |