kapacitor 报错问题汇总

1.服务器系统为 华为云鲲鹏

[root@DC4-64-007 ~]# uname -a
Linux DC4-64-007 4.19.90-17.ky10.aarch64 #1 SMP Sun Jun 28 14:27:40 CST 2020 aarch64 aarch64 aarch64 GNU/Linux

报错信息为:systemd[1]: Failed to start Time series data processing engine..

kapacitor 报错问题汇总_第1张图片

kapacitor.service内容为:

[Unit]
Description=Time series data processing engine.
Documentation=https://github.com/influxdb/kapacitor
After=network.target

[Service]
User=root
Group=root
LimitNOFILE=65536
EnvironmentFile=-/etc/default/kapacitor
ExecStart=/usr/bin/kapacitord -config /etc/kapacitor/kapacitor.conf $KAPACITOR_OPTS
KillMode=process
Restart=on-failure

[Install]
WantedBy=multi-user.target

解决方案:

添加(在influxdb创建的)用户和密码!

[[influxdb]]
enabled = true
name = "localhost"
default = true
urls = ["http://localhost:8086"]
username = "user"
password = "password"

 重启服务即可!!!

2.设置 kapacitor 为 systemctl 管理

vim /lib/systemd/system/influxd.service

[Unit]
Description=Time series data processing engine.
Documentation=https://github.com/influxdb/kapacitor
After=network.target

[Service]
User=kapacitor
Group=kapacitor
LimitNOFILE=65536
EnvironmentFile=-/etc/default/kapacitor
ExecStart=/usr/bin/kapacitord -config /etc/kapacitor/kapacitor.conf $KAPACITOR_OPTS
KillMode=process
Restart=on-failure

[Install]
WantedBy=multi-user.target

你可能感兴趣的:(linux,服务器,运维)