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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM