Error message:
Unable to start web listener"err="listen tcp 0.0.0.0:9090: bind: address already in use
Error details:
ts=2023-05-11T02:40:38.780Z caller=main.go:830 level= error msg="Unable to start web listener" err="listen tcp 0.0.0.0:9090: bind: address already in use"
error scenario:
Prometheus starts error
Solution:
err="error starting web server: listen tcp 0.0.0.0:9090: bind: address already in use" This is due to multiple attempts to start prometheus without complete success, but the port is already in use, you can check whether the port is real When being used: use 通过端口号获取pid,指令:lsof -i:9090
the command to release the port: , kill pid
I am herekill 71735
kill -9 71735