● influxdb.service - InfluxDB is an open-source, distributed, time series database
Loaded: loaded (/usr/lib/systemd/system/influxdb.service; enabled; vendor preset: disabled)
Active: failed (Result: start-limit) since 四 2022-03-24 09:03:46 CST; 9min ago
Docs: https://docs.influxdata.com/influxdb/
Process: 8522 ExecStart=/usr/bin/influxd -config /etc/influxdb/influxdb.conf $INFLUXD_OPTS (code=exited, status=1/FAILURE)
Main PID: 8522 (code=exited, status=1/FAILURE)
3月 24 09:03:46 master systemd[1]: Unit influxdb.service entered failed state.
3月 24 09:03:46 master systemd[1]: influxdb.service failed.
3月 24 09:03:46 master systemd[1]: influxdb.service holdoff time over, scheduling restart.
3月 24 09:03:46 master systemd[1]: start request repeated too quickly for influxdb.service
3月 24 09:03:46 master systemd[1]: Failed to start InfluxDB is an open-source, distributed, time series database.
3月 24 09:03:46 master systemd[1]: Unit influxdb.service entered failed state.
3月 24 09:03:46 master systemd[1]: influxdb.service failed.
由于我使用docker容器制作镜像,加载镜像创建容器与原docker容器所在同一服务器,且原docker容器中的influxdb一直处于启动状态,导致新创建的容器中influxdb启动不起来。
该问题的本质是:端口被占用导致influxdb启动失败,或者同台服务器上启动了多个influxdb程序。
简单的解决方法:停止其他容器或者宿主机上启动的influxdb程序即可