22

我是 InfluxDB 的新手。我找不到有关在 Windows 上安装 InfluxDB 的任何详细信息。有什么方法可以将它安装在 Windows 机器上,还是我需要使用 Linux 服务器进行开发?

4

12 回答 12

23

目前 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"
于 2015-03-13T16:45:09.753 回答
20

我在这个问题上挣扎了很多,所以我将逐步发布完整的过程。这将有望帮助其他登陆这篇文章的人。

目录:

编辑:警告,如果 Go 和项目文件夹安装到自定义路径(不是 c:\go),这将不起作用。在这种情况下,请使用有关无法识别的导入路径的神秘消息来休息(感谢 user626528 提供的信息)

  1. 以前的下载
  2. 汇编
  3. 执行

1. 以前的下载

转到 Windows(获取 .msi): https ://golang.org/dl/

适用于 Windows 的 GIT:http: //git-scm.com/download/win


2. 编译

cd 到C:\Go

"C:\Go\projects"中创建我们的$GOPATH(除了C:\Go\src之外的任何地方,即$GOROOT)。

> mkdir projects

$GOPATH变量设置为这个新目录:

> set GOPATH=C:\Go\projects

将 influxdb 代码从 github 拉到我们的$GOPATH 中

> go get github.com/influxdata/influxdb

cd 到C:\Go\projects\github.com\influxdata\influxdb

拉取项目依赖:

> go get -u -f ./...

最后,构建代码:

> go build ./...

...这将在C:\Go\projects\bin下创建 3 个可执行文件:

influx.exe 
influxd.exe
urlgen.exe

3. 执行

启动服务:

influxd -config influxdb.conf

为此,您首先需要使用以下文本创建一个influxdb.conf文件:

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"

服务启动后,您可以执行 Chrome 并转到http://localhost:8083,然后开始使用 InfluxDb。

用户名和密码的默认值为:

username: root
password: root
于 2015-05-08T15:22:07.767 回答
8

很少更新Xavier Peña解决方案来构建最新的 influxdb。注意 github URL 和路径的区别。

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
于 2016-05-18T14:29:44.413 回答
3

Windows(如果官方支持)。转到https://portal.influxdata.com/downloads并从那里下载。

于 2017-09-25T09:19:40.063 回答
1

14 年 9 月 30 日没有 influxdb Windows 版本,只有 Linux 和 OSX 版本。

更新:当前 0.9 版本目前 04/09/2015 有一个 win 版本。

于 2014-09-30T09:03:05.470 回答
1

目前influxdb的0.9分支是pure go,可以在windows上编译。主要的先决条件是 go 1.4、git(例如 tortoisegit 和 msysgit)、hg(例如 tortoisehg)。

使用此设置,我已成功编译并在 Win7 x64 上运行 influxdb。

于 2015-03-09T11:06:46.883 回答
1

nightlies”版本现在实际上有 Windows 可执行文件。发布版本没有(有一个未解决的问题)。

或者,下载已发布的版本并将 .exe 扩展名添加到文件名也应该可以工作。您必须使用以下命令生成配置文件:

influxd config >influxdb.conf
于 2017-10-23T19:40:10.930 回答
1

2020 年更新 - 不建议在 Windows 上使用 InfluxDB

经过无数篇文章,一般不建议直接在Windows上安装InfluxDB。有很多问题。在性能和稳定性方面。官方 InfluxDB 也不支持 windows,以后也没有计划。这进一步证明了最新的 InfluxDB 2.0 不包含任何 Windows 二进制文件。

InfluxDB 2.0 不包括 windows 二进制文件

所以?

工作?=> DOCKERS for WINDOWS,试试吧,简单又免费

码头工人是免费的。如果你打算在 Windows Server 上安装 docker,它对于 Windows Server 2016 及更高版本也是免费的(微软与 docker 做了一个特别的交易来免费提供它们)

对于那些仍在 VM 世界中的人:

Docker不像虚拟机。它通过 Windows 服务直接与主机的文件系统交互

检查以下链接以获取分步指南:

https://www.open-plant.com/knowledge-base/how-to-install-influxdb-docker-for-windows-10/

于 2019-12-06T00:42:48.610 回答
0

我们目前不正式支持 Windows。但是,您现在应该能够从 master 构建。请参阅此问题以密切跟踪它,底部的评论有一个链接,您可以在哪里获得编译的二进制文件: https ://github.com/influxdata/influxdb/issues/5359

于 2016-02-22T23:17:43.367 回答
0

对于创建 influxdb 配置文件,我们还可以使用以下命令

influxd config > influxdb.generated.conf

于 2016-04-27T11:46:38.790 回答
0

如果您不想自己编译,构建由 influxdata 完成,可以在以下 URL 找到:https ://dl.influxdata.com/influxdb/releases/influxdb-1.0.0-beta2_windows_amd64.zip (只需更改版本号以获得另一个(最近的)版本)

然而,正如 Paul Dix 所提到的,Windows 目前还没有得到官方支持。

于 2016-08-04T08:46:03.160 回答
0

去 influxdata.com 点击下载

https://portal.influxdata.com/downloads/

选择 1.7 版本,因为目前没有 2.0 的二进制文件。

下载 Windows 二进制文件

于 2019-04-05T00:05:46.700 回答