【问题描述】
./prometheus --config.file=prometheus.yml启动Prometheus时报错err=“listen tcp 0.0.0.0:9090: bind: address already in use”
【解决方案】
修改prometheus.yml文件中端口
1、修改成其他端口
2、./prometheus --config.file=prometheus.yml再次启动依旧报错err=“listen tcp 0.0.0.0:9090: bind: address already in use”
启动命令
使用如下命令启动:./prometheus --config.file=prometheus.yml --web.listen-address=:9099 &成功