gpt4 book ai didi

prometheus - 如果 prometheus 在 mac 上作为服务运行,如何更新它的配置文件?

转载 作者:行者123 更新时间:2023-12-05 01:52:53 33 4
gpt4 key购买 nike

如果 prometheus 在 mac 上作为服务运行,如何更新 prometheus.yml 文件?请分享在 mac 上更新 prometheus prometheus.yml 文件的命令。

最佳答案

如果您使用 brew 安装了 prometheus,并使用 brew services start prometheus 运行你可以编辑/usr/local/etc/prometheus.yml中的配置文件,然后你可以用命令brew services restart prometheus

重启prometheus

关于prometheus - 如果 prometheus 在 mac 上作为服务运行,如何更新它的配置文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71412533/

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