Cleanup service docs (#4103)
- Remove windows service doc and add to Minio-service - Remove Linux service doc as it is duplicatedmaster
parent
952c618441
commit
4448285a83
Before Width: | Height: | Size: 59 KiB |
Before Width: | Height: | Size: 79 KiB |
@ -1,44 +0,0 @@ |
|||||||
# 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-service/master/linux-systemd/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 |
|
||||||
``` |
|
@ -1,28 +0,0 @@ |
|||||||
# 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 |
|
||||||
``` |
|
Loading…
Reference in new issue