prmetheuss启动Web服务器时出错,正常退出“err =”listen tcp 0.0.0.0:9090:bind:地址已在使用中

时间:2017-11-29 12:27:36

标签: prometheus

需要帮助,运行prometheus后,在centos中运行错误。

msg="Error starting web server, exiting gracefully" err="listen tcp 0.0.0.0:9090: bind: address already in use"
level=info ts=2017-11-29T07:16:05.523067725Z caller=main.go:384 msg="See you next time!"
level=info ts=2017-11-29T07:16:05.523216386Z caller=targetmanager.go:87 component="target manager" msg="Stopping target manager..."
level=info ts=2017-11-29T07:16:05.523247638Z caller=targetmanager.go:99 component="target manager" msg="Target manager stopped"
level=info ts=2017-11-29T07:16:05.523257989Z caller=manager.go:455 component="rule manager" msg="Stopping rule manager..."
level=info ts=2017-11-29T07:16:05.52326427Z caller=manager.go:461 component="rule manager" msg="Rule manager stopped"
level=info ts=2017-11-29T07:16:05.523271345Z caller=notifier.go:483 component=notifier msg="Stopping notification handler..."

2 个答案:

答案 0 :(得分:1)

您可以更改Promethus端口 像这样运行它: ./prometheus --config.file = prometheus.yml --web.listen-address =:9010&

9010是您的端口

答案 1 :(得分:0)

端口9090已被其他程序使用。

您需要找到该端口上运行的任何进程ID(pid)并将其终止。

您可以使用lsof -i :9090获取pid,然后使用sudo kill -9 <pid>来终止程序并释放端口,以便运行Prometheus。

相关问题