我是 InfluxDB 的新手。我找不到有关在 Windows 上安装 InfluxDB 的任何详细信息。有什么方法可以将它安装在 Windows 机器上,还是我需要使用 Linux 服务器进行开发?
最佳答案
目前的influxdb 0.9分支是纯go的,可以在windows下编译,命令如下:
cd %GOPATH%/src/github.com/influxdb
go get -u -f ./...
go build ./...
当然,您将需要 go (>1.4)、git 和 hg。
如果你不想编译你自己的版本,你也可以在这里找到我自己的 v0.9.0-rc11 的 Windows x86 二进制文件: https://github.com/adriencarbonne/influxdb/releases/download/v0.9.0-rc11/influxdb_v0.9.0-rc11.zip
要运行 InfluxDB,请键入:influxd.exe
。
或者更好的是,创建以下配置文件,将其保存为 influxdb.conf
并运行 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"
关于linux - 如何在 Windows 中安装 InfluxDB,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26116711/