如何在Windows中安装InfluxDB [英] How to install InfluxDB in Windows

查看:1862
本文介绍了如何在Windows中安装InfluxDB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是InfluxDB的新手。我找不到任何有关在Windows上安装InfluxDB的详细信息。有没有办法在Windows机器上安装它,或者我需要使用Linux服务器用于开发目的?

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?

推荐答案

influxdb的当前0.9分支是纯go,可以使用以下命令在Windows上编译:

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 ./...

当然你需要go(> 1.4),git和hg。

Of course you will need go (>1.4), git and hg.

如果你不想编译自己的版本,你也可以在这里找到我自己的Windows x86二进制v0.9.0-rc11:
https://github.com/adriencarbonne/influxdb/releases/download/v0.9.0-rc11/influxdb_v0.9.0-rc11.zip

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

要运行InfluxDB,请输入: influxd.exe

To run InfluxDB, type: influxd.exe.

甚至更好,创建以下配置文件,保存为 influxdb.conf 并运行 influxdb --config influxdb.conf

Or even better, create the following config file, save it as influxdb.conf and run influxdb --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"

这篇关于如何在Windows中安装InfluxDB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆