2016-10-21 23:56:56 -04:00
|
|
|
|
|
|
|
- Systemd script is configured to run the binary from /usr/share/minio/bin/.
|
2016-10-27 13:04:06 -04:00
|
|
|
```sh
|
|
|
|
$ mkdir -p /usr/share/minio/bin/
|
|
|
|
```
|
2016-10-21 23:56:56 -04:00
|
|
|
|
|
|
|
- Download the binary. Find the relevant links for the binary at https://minio.io/downloads/#minio-server.
|
2016-10-27 13:04:06 -04:00
|
|
|
```sh
|
|
|
|
$ wget -O /usr/share/minio/bin/minio https://dl.minio.io/server/minio/release/linux-amd64/minio
|
|
|
|
```
|
2016-10-21 23:56:56 -04:00
|
|
|
|
|
|
|
- Give execute permission to the Minio binary.
|
2016-10-27 13:04:06 -04:00
|
|
|
```sh
|
|
|
|
$ chmod +x /usr/share/minio/bin/minio
|
|
|
|
```
|
2016-10-21 23:56:56 -04:00
|
|
|
|
|
|
|
- Create user minio. Systemd is configured with User=minio .
|
2016-10-27 13:04:06 -04:00
|
|
|
```sh
|
|
|
|
$ useradd minio
|
|
|
|
```
|
2016-10-21 23:56:56 -04:00
|
|
|
|
|
|
|
- Create the Environment configuration file.
|
2016-10-27 13:04:06 -04:00
|
|
|
```sh
|
|
|
|
$ cat <<EOT >> /etc/default/minio.conf
|
|
|
|
```
|
2016-10-21 23:56:56 -04:00
|
|
|
|
|
|
|
```
|
2016-10-27 13:04:06 -04:00
|
|
|
# Remote node configuration.
|
2016-10-21 23:56:56 -04:00
|
|
|
MINIO_VOLUMES=node1:/tmp/drive1 node2:/drive1 node3:/tmp/drive1 minio4:/tmp/drive1
|
2016-10-27 13:04:06 -04:00
|
|
|
# Use if you want to run Minio on a custom port.
|
|
|
|
MINIO_OPTS="--address :9199"
|
|
|
|
# Acess Key of the server.
|
2016-10-21 23:56:56 -04:00
|
|
|
MINIO_ACCESS_KEY=Server-Access-Key
|
2016-10-27 13:04:06 -04:00
|
|
|
# Secret key of the server.
|
2016-10-21 23:56:56 -04:00
|
|
|
MINIO_SECRET_KEY=Server-Secret-Key
|
|
|
|
|
|
|
|
EOT
|
|
|
|
```
|
|
|
|
|
2016-10-27 13:04:06 -04:00
|
|
|
- Download and put `minio.service` in `/etc/systemd/system/`
|
|
|
|
```sh
|
|
|
|
$ ( cd /etc/systemd/system/; curl -O https://raw.githubusercontent.com/minio/minio/master/dist/linux-systemd/distributed/minio.service )
|
|
|
|
```
|
2016-10-21 23:56:56 -04:00
|
|
|
- Enable startup on boot.
|
2016-10-27 13:04:06 -04:00
|
|
|
```sh
|
|
|
|
$ systemctl enable minio.service
|
|
|
|
```
|
2016-10-21 23:56:56 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|