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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • **2014真题Directions:Read the following text. Choose the be...
    又是夜半惊坐起阅读 11,561评论 0 23
  • 当时是我第一次打算在电影院看是诺兰的电影,毕竟错过了《盗梦空间》,错过了《蝙蝠侠》三部曲,我可不想再错过这一部,于...
    电影反光镜阅读 3,523评论 0 0
  • 我总是隔着海水 触摸 住在孤独维度的你 抬头入帘 归来就在有你的梦里 偷来草的种子埋进你的骨髓 鼻腔充斥它开出的芬...
    夕木想做梦阅读 349评论 0 6
  • 一.Selector是什么 Selector选择器类管理着一个被注册的通道集合的信息和它们的就绪状态。通道是和选择...
    蜗牛1991阅读 630评论 0 0

友情链接更多精彩内容