在安装InfluxDB的时候,新装的竟然提示报错。

status 报错信息如下:

May 10 22:36:37 Centos7 systemd[1]: Unit influxdb.service entered failed state.
May 10 22:36:37 Centos7 systemd[1]: influxdb.service failed.
May 10 22:36:37 Centos7 systemd[1]: influxdb.service holdoff time over, scheduling restart.
May 10 22:36:37 Centos7 systemd[1]: Stopped InfluxDB is an open-source, distributed, time series database.
May 10 22:36:37 Centos7 systemd[1]: start request repeated too quickly for influxdb.service
May 10 22:36:37 Centos7 systemd[1]: Failed to start InfluxDB is an open-source, distributed, time series database.
May 10 22:36:37 Centos7 systemd[1]: Unit influxdb.service entered failed state.

查阅资料,发现有可能是权限没有给够,在journalctl -u influxdb执行后发现有提示权限问题,应该就是了。

随后给/etc/influxdb目录权限即可。记得要给influxdb本身和子文件子目录的所有权限。

以下目录也一起给

chmod 777 -R /var/lib/influxdb

另附开启启动解决方案:

influxdb:sudo systemctl enable influxdb
chronograf:sudo /sbin/chkconfig --add chronograf

Chronograf的默认启动端口:
/etc/default/chronograf文件下,添加

POTR=9090
最后修改:2020 年 05 月 10 日
如果觉得我的文章对你有用,请随意赞赏