LoginSignup
3
3

More than 3 years have passed since last update.

サーバーを立ち上げた際「bind: address already in use」と表示される時の対処法

Last updated at Posted at 2020-06-01

Goで開発をしていてローカルテスト、デバック等でサーバーを立ち上げた際に以下のように表示される
listen tcp :8080: bind: address already in use exit status 1

lsofコマンドで占有しているプロセスを確認
lsof -i -P | grep 8080

PID: 49714が占有しているのでキルする。
main 49714 ####### 3u IPv6 0xf0bfae567aeda41b 0t0 TCP *:8080 (LISTEN)
kill -KILL 49714

3
3
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
3
3