关于Influxdb1.4.2在windows下的安装过程的一些问题的记录

一、安装与配置:

  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秒左右

转载于:https://www.cnblogs.com/Wadereye/p/7992483.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值