@@ -7,28 +7,18 @@ Systemd script for Distributed Minio server.
77- Systemd script is configured to run the binary from /usr/local/bin/.
88- Download the binary. Find the relevant links for the binary at https://minio.io/downloads/#minio-server .
99
10- ## Create the Environment configuration file.
10+ ## Create the Environment configuration file
1111
12- Don't forget to update MINIO_VOLUMES with the correct paths.
12+ This file serves as input to Minio systemd service. Use this file to add ` MINIO_VOLUMES ` with the correct paths,
13+ ` MINIO_OPTS ` to add Minio server options like ` config-dir ` , ` address ` . Minio credentials should be
14+ ` MINIO_ACCESS_KEY ` and ` MINIO_SECRET_KEY ` in this file as well.
1315
1416``` sh
1517$ cat << EOT >> /etc/default/minio
16- # Remote node configuration .
18+ # Remote volumes to be used for Minio server .
1719MINIO_VOLUMES=http://node1/export1 http://node2/export2 http://node3/export3 http://node4/export4
1820# Use if you want to run Minio on a custom port.
1921MINIO_OPTS="--address :9199"
20-
21- EOT
22- ```
23-
24- ## Override default keys.
25-
26- By default minio reads credentials from ` ${HOME}/.minio/config.json ` . For
27- distriuted setup it is required to copy this file across all nodes to have
28- consistent credentials. You can override this behavior add custom credentials
29- in ` /etc/default/minio ` .
30- ```
31- cat <<EOT >> /etc/default/minio
3222# Access Key of the server.
3323MINIO_ACCESS_KEY=Server-Access-Key
3424# Secret key of the server.
@@ -37,15 +27,18 @@ MINIO_SECRET_KEY=Server-Secret-Key
3727EOT
3828```
3929
30+ For distributed setup it is required to copy this file across all nodes to have consistent credentials.
31+
4032## Systemctl
4133
4234Download ` minio.service ` in ` /etc/systemd/system/ `
35+
4336```
4437( cd /etc/systemd/system/; curl -O https://raw.githubusercontent.com/minio/minio-service/master/linux-systemd/distributed/minio.service )
4538```
4639
4740Enable startup on boot
41+
4842```
4943systemctl enable minio.service
5044```
51-
0 commit comments