Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
848 views
in Technique[技术] by (71.8m points)

linux - How to install InfluxDB in Windows

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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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"

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...