I need port 3000 free for my dev work. But it's being used by grafana-server, that I don't remember ever installing. We do use it within our company so perhaps at some point it has been added to system somehow.
Anyway, so I use this command
sudo netstat -lepunt | grep 3000 to get the process that is on port 3000.
sudo kill -9 [process number] then I netstat again and it's there again but with a different process number.
I've also followed this example to force the port number used to a different one but it still doesn't seem to fix my problem.
I've also tried to find every occurrence of grafana on my computer and delete them. Restarted services to make the system know that they no longer exist, but they still do. At the end of my wit and not sure what to do next. Any ideas? Any more information needed from myself?