美文网首页
关于Influxdb1.4.2在windows下的安装过程的一些

关于Influxdb1.4.2在windows下的安装过程的一些

作者: 跋涉者129 | 来源:发表于2017-12-06 14:17 被阅读0次

一、安装与配置:

  1. Influxdb在1.3以后版本已经关闭了内置 的8086的web管理功能,需要单独的工具来管理

 2.其配置文件默认路径是linux格式,需要修改为本机windows格式 

我的存放路径是D:\influxdb

主要修改的配置文件修改为如下:

[meta]

# Where the metadata/raft database is stored

dir = "D:/influxdb/data/meta"

# Automatically create a default retention policy when creating a database.

# retention-autocreate = true

# If log messages are printed for the meta service

# logging-enabled = true

###

### [data]

###

### Controls where the actual shard data for InfluxDB lives and how it is

### flushed from the WAL. "dir" may need to be changed to a suitable place

### for your system, but the WAL settings are an advanced configuration. The

### defaults should work for most systems.

###

[data]

# The directory where the TSM storage engine stores TSM files.

dir = "D:/influxdb/data/data"

# The directory where the TSM storage engine stores WAL files.

wal-dir = "D:/influxdb/data/wal"

二启动,写了个批处理:

start.bat

set HOME=d:\influxdb

influxd.exe -config influxdb.conf

三、如果客户端连接时出现这样的错误 :

There was an error writing history file :open: The system cannot find the specified

在windows里我的电脑-》右键-》属性-》高级系统设置》环境变量,添加环境变量,然后变量名填 HOME,值指向你本地的一个路径。保存后,重启influxdb就正常了。

或者你用我上面的那个批处理,也可以解决

四、我用c#做的开发,选 用的这个开源库

InfluxData.Net 来访问数据

五、性能

我本机I7,16G内存,写1000条数据异步模式耗时400ms,1万条数据3.78s,10万条数据34秒左右

相关文章

网友评论

      本文标题:关于Influxdb1.4.2在windows下的安装过程的一些

      本文链接:https://www.haomeiwen.com/subject/renkixtx.html