4
Address already in use
source link: https://willschenk.com/labnotes/2024/address_already_in_use/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
If you want to see which process is listening on a certain port, use
lsof
. For example, looking for what's running on 9292
is:
lsof -i :9292
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME ruby 27467 wschenk 13u IPv4 0x8cf71cd7f78517e3 0t0 TCP localhost:armtechdaemon (LISTEN) ruby 27467 wschenk 20u IPv6 0x8cf71cdcbf525e93 0t0 TCP localhost:armtechdaemon (LISTEN)
And then you can kill it with
kill 27467
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK