4

Address already in use

 1 month ago
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.

Address already in use

Published March 22, 2024

Contents

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

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK