亲测influxdb安装为window后台服务

InfluxDB 安装

64bit:https://dl.influxdata.com/influxdb/releases/influxdb-1.7.4_windows_amd64.zip

解压安装包

修改配置文件

复制代码
[meta]
  # Where the metadata/raft database is stored
  dir = "D:/influxdb/meta"

...


[data]
  # The directory where the TSM storage engine stores TSM files.
  dir = "D:/influxdb/data"

  # The directory where the TSM storage engine stores WAL files.
  wal-dir = "D:/influxdb/wal"

 ...

[http]
  # Determines whether HTTP endpoint is enabled.
  enabled = true

......

  # The bind address used by the HTTP service.
 bind-address = ":8086"

用管理员cmd界面里,输入:influxd -config influxdb.conf 用配置文件启动数据库,注意,此窗口不能关闭。这块一直不知,折腾半天。此外,可以用后面的nssm来将其配置成服务,就不用一直开着了。

再新开cmd界面,输入:influx,进入influx数据库编辑界面进行操作。

在influxdb目录里面写一个启动脚本startup.bat

复制代码
 influxd.exe -config influxdb.conf

influxdb配置为windows服务

下载nssmhttp://www.nssm.cc/download

找到nssm的exe目录,输入:cmd 进入命令行编辑界面。(根据自己的电脑选择win32或者win64)

输入:nssm install,启动设置界面

然后点击install service

在windows服务中找到"influxdb"并启动,即可。

删除服务:nssm.exe remove

删除服务之前停止influxdb服务

相关推荐
UrSpecial4 分钟前
IM项目——消息转发子服务
运维·服务器
草根站起来19 分钟前
S/MIME电子邮件证书
运维·服务器
venus6027 分钟前
网络运维之ping与telnet的区别
运维·服务器·网络
sxgzzn30 分钟前
如何有效提升开关柜与电缆的故障监测能力?
运维·电缆绝缘监测·电缆在线监测·局部放电在线监测·局放在线监测
WinyQ031 分钟前
【DeepStream】整合出现的问题
linux·运维·网络
坐怀不乱杯魂36 分钟前
Linux 基础IO
linux·运维·服务器
小魏每天都学习36 分钟前
【网络拓扑部署-网络设备-网络安全】
运维·网络
南棱笑笑生38 分钟前
20260123让天启AIO-3576Q38开发板在天启Buildroot下读写TF卡
linux·运维·服务器·rockchip
噎住佩奇1 小时前
PVC和PV等概念解释
linux·运维·服务器
lvbinemail1 小时前
配置jenkins.service
java·运维·jenkins·systemctl