I am new to InfluxDB. I could not find any details about installing InfluxDB on Windows. Is there any way to install it on a Windows machine or do I need to use a Linux server for development purposes?
-
2Builds are now up here: https://s3.amazonaws.com/influxdb/ . (Append one of the keys on to that URL.) Search the page for "windows_amd64". – Brannon Mar 10 '16 at 15:15
12 Answers
The current 0.9 branch of influxdb is pure go and can be compiled on Windows with the following commands:
cd %GOPATH%/src/github.com/influxdb
go get -u -f ./...
go build ./...
Of course you will need go (>1.4), git and hg.
If you do not want to compile your own version, you can also find here my own Windows x86 binaries for v0.9.0-rc11: https://github.com/adriencarbonne/influxdb/releases/download/v0.9.0-rc11/influxdb_v0.9.0-rc11.zip
To run InfluxDB, type: influxd.exe
.
Or even better, create the following config file, save it as influxdb.conf
and run influxd --config influxdb.conf
:
reporting-disabled = true
#[logging]
#level = "debug"
#file = "influxdb.log"
[admin]
enabled = true
port = 8083
[api]
port = 8086
[data]
dir = "data"
[broker]
dir = "broker"

- 4,399
- 26
- 26
-
cool, it work! I was looking for how to run influxdb on SuSE10SP2 X64. but not success. – Mingo Mar 31 '15 at 18:14
-
-
1Yes, you can download pre-built windows (.exe) installations from https://www.influxdata.com/downloads/#influxdb – John Feb 01 '17 at 03:00
-
I was trying to run comandline-tool influx.exe instead of the engine influx**d**.exe for a while – Serge S. Apr 25 '17 at 08:33
-
I think you meant to run `influxd -config influxdb.conf` (with the 'd') – Felipe Cruz May 29 '17 at 08:58
-
@John The pre-built does not include any .exe or .conf files after unzip. – syfantid Oct 15 '17 at 10:40
I struggled quite a lot with this issue, so I'll post the full process step by step. This will hopefully help other people that lands on this post.
Table of contents:
Edit: WARNING, this doesn't work if Go and projects folder are installed to a custom path (not c:\go). In this case go get breaks with cryptic messages about unrecognized import paths (thanks to user626528 for the info)
- PREVIOUS DOWNLOADS
- COMPILATION
- EXECUTION
1. PREVIOUS DOWNLOADS
Go for Windows (get the .msi): https://golang.org/dl/
GIT for Windows: http://git-scm.com/download/win
2. COMPILATION
cd to C:\Go
Create our $GOPATH in "C:\Go\projects" (anywhere but C:\Go\src, which is the $GOROOT).
> mkdir projects
Set to $GOPATH variable to this new directory:
> set GOPATH=C:\Go\projects
Pull the influxdb code from github into our $GOPATH:
> go get github.com/influxdata/influxdb
cd to C:\Go\projects\github.com\influxdata\influxdb
Pull the project dependencies:
> go get -u -f ./...
Finally, build the code:
> go build ./...
...this will create 3 executables under C:\Go\projects\bin:
influx.exe
influxd.exe
urlgen.exe
3. EXECUTION
To start the service:
influxd -config influxdb.conf
For that, you first need to create a influxdb.conf file with the following text:
reporting-disabled = true
#[logging]
#level = "debug"
#file = "influxdb.log"
#write-tracing = false
[admin]
enabled = true
port = 8083
[api]
port = 8086
[data]
dir = "data"
[broker]
dir = "broker"
Once the service is started, you can execute Chrome and go to http://localhost:8083, and start playing with InfluxDb.
Default values for username and password are:
username: root
password: root

- 527
- 7
- 20

- 7,399
- 9
- 57
- 99
-
Thanks for comprehensive step-by-step instructions. Only thing I would suggest is conf file format changes from time to time. Its advised to use `influxd config > influxdb.generated.conf` and edit what is needed. – Adarsha Aug 25 '15 at 12:54
-
This worked! But the logging on Windows seems non-existent. The Linux version writes to journalctl. Is there a place on Windows that logs get placed? – Shadoninja Sep 09 '15 at 21:49
-
2Warning: this doesn't work if Go and projects folder are installed to a custom path (not c:\go). In this case `go get` breaks with cryptic messages about unrecognized import paths. – user626528 Mar 16 '16 at 08:19
-
I have a problem pulling the dependencies; I get an error `code in directory C:\Go\projects\src\github.com\uber-go\zap expects import "go.uber.org/zap"` Any ideas how to fix it? – syfantid Oct 15 '17 at 09:48
-
@syfantid you probably figured out by now.. influxdb uses gdm. You need to install gdm and run `gdm restore` (https://github.com/influxdata/influxdb/issues/8733) – mtmk Oct 30 '17 at 12:06
-
...To start the service: influxd -config influxdb.conf... I believe that this will not start InfluxDB as a service. It will simply start the executable... – Bigman74066 May 30 '18 at 07:49
-
_Versions 1.3 and later of InfluxDB and InfluxEnterprise do not support the web admin interface_ (c) [Transitioning from the InfluxDB Web Admin Interface](https://docs.influxdata.com/chronograf/v1.7/administration/transition-web-admin-interface/) – AntonK Mar 10 '19 at 21:16
Few updates to Xavier Peña solution to build latest influxdb. Notice the difference in github URL and the path.
C:\Go\projects>go get github.com/influxdata/influxdb
C:\Go\projects>go get github.com/sparrc/gdm
C:\Go\projects>cd C:\Go\projects\src\github.com\influxdata\influxdb
C:\Go\projects\src\github.com\influxdata\influxdb>go get -u -f ./...
C:\Go\projects\src\github.com\influxdata\influxdb>c:\Go\projects\bin\gdm.exe restore
C:\Go\projects\src\github.com\influxdata\influxdb>go build ./...
C:\Go\projects\src\github.com\influxdata\influxdb>go install ./...
C:\Go\projects\bin>influxd config > influxdb.generated.conf
C:\Go\projects\bin>influxd -config influxdb.generated.conf
-
When I execute the first command I get: `can't load package: package github.com/influxdata/influxdb: no buildable Go source files in C:\Go\src\github.com\influxdata\influxdb` – andr111 Sep 06 '16 at 18:05
-
after the build process I didn't find the bin folder under project directory. Can you please update the process steps? – Kumrun Nahar Keya Oct 25 '17 at 08:49
Windows if officially supported. Go to https://portal.influxdata.com/downloads and download it from there.

- 2,615
- 3
- 23
- 24
There wasn't an influxdb Windows version at Sep 30 '14, there were are only Linux and OSX versions.
Update: Current 0.9 version at present 04/09/2015 have a win version.

- 13,594
- 8
- 47
- 75
-
-
@FaresNoueihed Well, there wasn't any version at the time of my answer, Sep 30 '14. – Oscar Apr 08 '15 at 18:53
-
The current 0.9 branch of influxdb is pure go and can be compiled on Windows. The main prerequisites are go 1.4, git (e.g. tortoisegit together with msysgit), hg (e.g. tortoisehg).
Using this setup I've successfully compiled and run influxdb on Win7 x64.

- 13,378
- 13
- 61
- 98
The "nightlies" build actually has windows executables now. The release version does not (there is an open issue for that).
Alternatively, downloading the released version and adding the .exe extension to the file names should work as well. You would have to generate the config file using the command:
influxd config >influxdb.conf

- 3,746
- 3
- 25
- 30
Update 2020 - InfluxDB is NOT recommended on windows
After going through countless of articles, it is generally NOT recommended to install InfluxDB directly on Windows. There are many issues. In terms of performance and stability. Official InfluxDB too does not support windows and has no plans for it in the future. This is further proven as the latest InfluxDB 2.0 does not include any windows binaries.
InfluxDB 2.0 does not include windows binaries
so?
Work Around? => DOCKERS for WINDOWS, Try it, it's easy and free
Dockers are free. If you intend to install docker on Windows Server, it's also free for Windows Server 2016 and above (Microsoft made a special deal with docker to provide them for free)
For those who are still in the VM world:
Dockers are NOT like Virtual Machines. It interacts directly with the host's file system via a windows service
Check the link below for a step by step guide:
https://www.open-plant.com/knowledge-base/how-to-install-influxdb-docker-for-windows-10/

- 2,153
- 7
- 38
- 60
We don't officially support Windows at this time. However, you should now be able to build from master. See this issue to track it closely and the comments at the bottom have a link to where you can get a compiled binary: https://github.com/influxdata/influxdb/issues/5359

- 1,967
- 16
- 8
For create influxdb configuration file we can also use the below command
influxd config > influxdb.generated.conf

- 6,840
- 14
- 73
- 130
If you don't want to compile it yourself, the build is done by influxdata and can be found at URLs like : https://dl.influxdata.com/influxdb/releases/influxdb-1.0.0-beta2_windows_amd64.zip (just change the version number to have another (recent) version)
However, as mentionned by Paul Dix, Windows is not officially supported for the moment.

- 845
- 1
- 14
- 22
Go to influxdata.com click downloads
https://portal.influxdata.com/downloads/
Select version 1.7 because currently there are no binaries for 2.0.
Download Windows binary

- 732,580
- 175
- 1,330
- 1,459

- 4,310
- 34
- 37