mirror of
https://github.com/minio/minio.git
synced 2024-12-25 22:55:54 -05:00
2.6 KiB
2.6 KiB
How to run multiple Minio server instances on single machine.
In this document we will illustrate how to set up multiple Minio server instances on single machine. These Minio servers are running on their own port, data directory & configuration directory.
1. Prerequisites
- Download Minio server from here
- Download & Install mc from here
- Ports should be available for Minio server's use
2. Install and Configure Minio Server
Minio server is running on port 9002, 9003, 9004 with associated data directory and configuration file directory.
Minio server on port 9002
$ ./minio -C ~/.m1config server --address 192.168.1.11:9002 ~/data1/
Endpoint: http://192.168.1.11:9002
AccessKey: XTW9SWKRWYKWE9M9K9RG
SecretKey: pZehbS5UNrA9BAhYHnWC/QVvQ7vGVge48WGHzG9t
Region: us-east-1
Minio server on port 9003
$ ./minio -C ~/.m2config server --address 192.168.1.11:9003 ~/data2/
Endpoint: http://192.168.1.11:9003
AccessKey: UTD2WWPJOK754KMZKHWF
SecretKey: DbikDIY4+wItcexJa4nyrwQC0V2r7kLsK5SsRgHb
Region: us-east-1
Minio server on port 9004
$ ./minio -C ~/.m3config server --address 192.168.1.11:9004 ~/data3/
Endpoint: http://192.168.1.11:9004
AccessKey: KXLOJ908VEJ2K9RGUFHQ
SecretKey: LpkeePMtEWAa6payiCovfrNKiFHhABsJhMwGynF8
Region: us-east-1
This is how directory structure will look like for minio1
, replace it with your local setup.
$ tree -la minio1/
minio1/
├── data1
└── .minio
├── certs
├── config.json
└── config.json.old
3 directories, 2 files
Testing it all
Using terminal comamnd netstat
we can see Minio Server
is running on different ports on same machine.
$ netstat -ntlp | grep minio
tcp 0 0 192.168.1.11:9002 0.0.0.0:* LISTEN 29573/minio
tcp 0 0 192.168.1.11:9003 0.0.0.0:* LISTEN 29597/minio
tcp 0 0 192.168.1.11:9004 0.0.0.0:* LISTEN 29631/minio