How to compile InfluxDB from source

April 9, 2015 One Comment influxdb

compile influxdb with golang
Since version 0.9, InfluxDB is written 100% in Go. It mean it’s super easy and super fast to compile it.
In few commands, you can build your own InfluxDB database.

Install Golang

To install the Go compiler you will need a C compiler:

Edit your ~/.bashrc (on Linux) or ~/.bash_profile (on Mac OS X) and add:

With those settings, Go repositories will be download in $HOME/go/src
Go build will be installed in $HOME/go/bin

Download, compile and install Go:


Compile latest InfluxDB


Start InfluxDB

InfluxDB binaries will be located in $HOME/go/bin/influxd and $HOME/go/bin/influx
As it is already in your PATH you can start InfluxDB with influxd command

You can now open the web admin at http://localhost:8083

Go further

You should run InfluxDB with a configuration file.
Usually InfluxDB is used with Grafana to create a dashboard monitoring.

Monitor & detect anomalies with