gpt4 book ai didi

Prometheus 错误启动 Web 服务器 : address already in use

转载 作者:行者123 更新时间:2023-12-05 08:32:46 25 4
gpt4 key购买 nike

需要帮助,在启动 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..."

最佳答案

您可以像这样更改 Prometheus 使用的端口(在本例中为端口 9010):

./prometheus --web.listen-address=:9010 &

关于Prometheus 错误启动 Web 服务器 : address already in use,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47552888/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com