如何解决java.net.SocketException:从spring-boot应用程序向influxdb写入数据时重置连接

问题描述 投票:0回答:1

您好,我构建了一个Spring Boot应用程序,并希望通过influxdb记录心跳和指标。但是最近当我再次运行该项目时,出现错误消息:enter image description here

我以为这可能是influxdb问题,我已卸载并重新安装brew安装influxdb。并运行它,创建表...。但仍然是相同的错误。

知道发生什么了吗?

似乎Influx db不允许发布?我试图用浏览器访问localhost:8080 / write?db = db_name&....我收到了“方法不允许”

java spring-boot influxdb
1个回答
0
投票

实际上,我尝试使用influxd启动influxdb,不是

influxd -config /usr/local/etc/influxdb.conf

brew services restart influxdb

然后它起作用了!

© www.soinside.com 2019 - 2024. All rights reserved.