Skip to content

Running InfluxDB as a service: No documentation exists for installation under Windows #2164

@Kortenbach

Description

@Kortenbach

The InfluxDB documentation only includes instructions on how to install influxDB for various flavors of Linux, but I do not see any documentation about installing InfluxDB for Windows. Basic installation is pretty straight forward, but installing InfluxDB as a Windows service can be a pain in the *, so it would be nice to have some documentation about it so that everybody is using the same method for this.

Here's my suggestion:
Download nssm 2.24 (zip) from https://nssm.cc/download
Unzip nssm.exe from it and put in a new folder called nssm (I put it in the InfluxDB folder)
Create a batchfile nssmInstall.bat containing the following text:
nssm install InfluxDB
Run nssminstall.bat and fill in the tabs on the window that is displayed. Here is an example:
Tab "application"
Path: D:\PortableApps\Influx\InfluxDB\influxd.exe
Startup directory: D:\PortableApps\Influx\InfluxDB
Arguments: -config influxdb.conf
Tab "details"
Display name: InfluxDB Service
Description: InfluxDB running as a service. Installed by nssm, the non sucking service manager
StartupType: Automatic

Leave the other tabs at their default settings
Create a batchfile nssmStart.bat containing the following text:
nssm start InfluxDB
Run NssmStart.bat
And you are done!

I suggest to build a few extra batch files:
NssmStop.bat :
nssm stop InfluxDB
NssmStatus.bat :
nssm status InfluxDB
pause
NssmEdit.bat:
nssm edit InfluxDB

Please let me know if you have any suggestions for improving upon this method.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions