docs: Restructure docs, move the files to their relevant location. (#3648)

Also combines windows TLS docs with single doc with Linux.
This commit is contained in:
Harshavardhana
2017-01-28 19:45:30 -08:00
committed by GitHub
parent ccd949d8ca
commit 73f4f29110
6 changed files with 166 additions and 118 deletions

View File

@@ -0,0 +1,44 @@
# Running Minio as a service on Linux
## Install Minio service
Systemctl is a controller for systemd system and service manager. This document assumes operating system to be Ubuntu 16.04 (LTS) with `systemctl`.
Create a default minio startup config file at `/etc/default/minio`. `MINIO_VOLUMES` should be updated with the correct path.
```
cat <<EOT >> /etc/default/minio
# Local export path.
MINIO_VOLUMES="/mnt/export"
# Use if you want to run Minio on a custom port.
# MINIO_OPTS="--address :9001"
EOT
```
Optionally you can also override your Minio access credentials as shown below.
```
cat <<EOT >> /etc/default/minio
# Access key of the server.
MINIO_ACCESS_KEY=YOUR-ACCESSKEY
# Secret key of the server.
MINIO_SECRET_KEY=YOUR-SECRETKEY
EOT
```
Download `minio.service` into `/etc/systemd/system/`
```
( cd /etc/systemd/system/; curl -O https://raw.githubusercontent.com/minio/minio-systemd/master/minio.service )
```
## Enable Minio service
Once we have successfully copied the `minio.service` we will enable it to start on boot.
```
systemctl enable minio.service
```
## Disable Minio service
```
systemctl disable minio.service
```

View File

@@ -0,0 +1,28 @@
# Running Minio as a service on Windows
## Install Minio service
NSSM is an opensource alternative to srvany. NSSM is still being updated, and works on Windows 10 as well.
Download [NSSM](http://nssm.cc/download) and extract the 64 bit nssm.exe to a known path.
```
c:\nssm.exe install Minio c:\bin\minio.exe server c:\data
```
### Configure startup type
When you start services, look for the Minio service and start and stop (or make it automatically start at reboots) the service.
![Configure startup type](https://raw.githubusercontent.com/minio/minio/master/docs/screenshots/windows-configure-startup-type.png)
### Configure user
It is a good (and secure) practice to create a new user, assign rights to the data folder to this user and change the service Log On info to use the newly created user.
![Configure user](https://raw.githubusercontent.com/minio/minio/master/docs/screenshots/windows-configure-user.png)
## Delete Minio service
```
c:\nssm.exe remove Minio
```