亲测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服务

相关推荐
码农101号4 小时前
Linux中shell编程表达式和数组讲解
linux·运维·服务器
powerfulzyh5 小时前
非Root用户启动SSH服务经验小结
运维·ssh
云道轩5 小时前
升级centos 7.9内核到 5.4.x
linux·运维·centos
爱学习的小道长5 小时前
Ubuntu Cursor升级成v1.0
linux·运维·ubuntu
EelBarb5 小时前
seafile:ubuntu搭建社区版seafile12.0
linux·运维·ubuntu
402 Payment Required5 小时前
serv00 ssh登录保活脚本-邮件通知版
运维·chrome·ssh
小柏ぁ5 小时前
calico/node is not ready: BIRD is not ready: BGP not established with xxx
运维·docker·kubernetes
Mintimate6 小时前
云服务器 Linux 手动 DD 安装第三方 Linux 发行版:原理与实战
linux·运维·服务器
RussellFans6 小时前
Linux 环境配置
linux·运维·服务器
高冷的肌肉码喽7 小时前
Linux-进程间的通信
linux·运维·服务器