mirror of
https://github.com/minio/minio.git
synced 2025-02-27 13:29:15 -05:00
Add windows services docs with nssm instead of sc.
This commit is contained in:
parent
d3064e40b3
commit
752ed7915b
@ -2,36 +2,28 @@
|
|||||||
|
|
||||||
## Install Minio service
|
## Install Minio service
|
||||||
|
|
||||||
Download and install the [Windows Server 2003 Resource Kit Tools](https://www.microsoft.com/en-us/download/details.aspx?id=17657). It
|
NSSM is an opensource alternative to srvany. NSSM is still being updated, and works on Windows 10 as well.
|
||||||
is old, but still works on recent Windows versions. On the latest Windows versions you'll get a warning message, but you can run
|
|
||||||
it anyhow by clicking on "Run the program without getting help".
|
|
||||||
|
|
||||||
Start cmd.exe and install the Minio service:
|
Download [NSSM](http://nssm.cc/download) and extract the 64 bit nssm.exe to a known path.
|
||||||
|
|
||||||
```
|
```
|
||||||
sc create Minio binPath="C:\Program Files (x86)\Windows Resource Kits\Tools\srvany.exe" DisplayName="Minio Cloudstorage"
|
c:\nssm.exe install Minio c:\bin\minio.exe server c:\data
|
||||||
```
|
```
|
||||||
|
|
||||||
Now we need to configure srvany using regedit. Start regedit and go to HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Minio and
|
### Configure startup type
|
||||||
create a new key called Parameters.
|
|
||||||
|
|
||||||

|
When you start services, look for the Minio service and start and stop (or make it automatically start at reboots) the service.
|
||||||
|
|
||||||
Within the new key create a new String value called Application and enter the path of your Minio binary. (eg. C:\Minio\bin\minio.exe) And create
|

|
||||||
another String value called AppParameters with value `server c:\data` where c:\data will be the location of the data folder.
|
|
||||||
|
|
||||||
When you start services, look for the Minio service and start and stop (or make it automatically start at reboots) the service.
|
### 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.
|
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.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Delete Minio service
|
## Delete Minio service
|
||||||
|
|
||||||
If you want to remove the Minio service, just enter the following command from the command line.
|
|
||||||
|
|
||||||
```
|
```
|
||||||
sc delete Minio
|
c:\nssm.exe remove Minio
|
||||||
```
|
```
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 83 KiB |
Loading…
x
Reference in New Issue
Block a user