zoukankan      html  css  js  c++  java
  • 关于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秒左右

    已经到中年,还坚持学习,欢迎大家交流批评指点
  • 相关阅读:
    jQuery live事件说明及移除live事件方法
    Jquery的html方法里包含特殊字符的处理
    mysql创建定时任务
    MySQL内置函数获取几天前的日期
    实战mysql分区
    TCP的TIME_WAIT状态
    openssl生成SSL证书的流程
    mysql备份的三种方式详解
    mysql创建唯一索引
    MYSQL双机热备份的配置实施(问题总结)
  • 原文地址:https://www.cnblogs.com/Wadereye/p/7992483.html
Copyright © 2011-2022 走看看