golang

How To Guide - Compiling InfluxDB on Windows

posted by Mike Nisk on Apr 03, 2016

Introduction

This is a quick guide showing how to compile InfluxDB on Windows.


Requirements

First, we need to download and install the Windows versions of go, git and hg.


Note: InfluxDB requires Go 1.4.3

Downloads
https://golang.org/dl/
https://git-scm.com/downloads
http://tortoisehg.bitbucket.org/download/


Compile InfluxDB

Open an elevated command prompt and enter the following:

cd c:\go
mkdir projects
set "GOPATH=C:\Go\projects"
cd %gopath%
go get github.com/influxdata/influxdb
cd src\github.com\influxdata\influxdb
go get -u -f ./...
go build ./...


Create the InfluxDB Config File

cd c:\go\projects\bin
influxd config > influxdb.generated.conf
copy influxdb.generated.conf influxdb.conf


Modify the Config File

start wordpad influxdb.conf 


Launch InfluxDB

influxd –config influxdb.conf


Next Steps

Other things you might try now are:

  1. Configure this as a service using NSSM.
  2. Gather VMware vSphere stats and write them to InfluxDB vFlux-Stats-Kit on github


Source

The approach documented above reflects the new path locations (i.e. influxdata instead of influxdb) and is based on:
http://stackoverflow.com/questions/26116711/how-to-install-inflxdb-in-windows


Category:InfluxDB Tags: Windows golang NSSM InfluxDB