LoginSignup
0
0

More than 1 year has passed since last update.

Address already in use - bind(2) for "127.0.0.1" port 3000 (Errno::EADDRINUSE)がターミナルで出た

Posted at

対処

起動しているポートを検索

起動している一覧表示コマンド
% lsof -i:3000
起動している一覧
COMMAND  PID       USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME
ruby    7251 maedatakuo   13u  IPv4 0x523a717e82b7309f      0t0  TCP localhost:hbci (LISTEN)
ruby    7251 maedatakuo   14u  IPv6 0x523a717e7674b30f      0t0  TCP localhost:hbci (LISTEN)
ruby    7251 maedatakuo   25u  IPv6 0x523a717e82ea364f      0t0  TCP localhost:hbci->localhost:52804 (CLOSE_WAIT)
ruby    7251 maedatakuo   26u  IPv6 0x523a717e7674a64f      0t0  TCP localhost:hbci->localhost:52810 (CLOSE_WAIT)
ruby    7251 maedatakuo   28u  IPv6 0x523a717e82ea3caf      0t0  TCP localhost:hbci->localhost:52811 (CLOSE_WAIT)
ruby    7251 maedatakuo   29u  IPv6 0x523a717e8136d96f      0t0  TCP localhost:hbci->localhost:52817 (CLOSE_WAIT)
起動ポートを閉じるコマンド
% kill -9 (ポート名)
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0