Address already in use - bind(2) (Errno::EADDRINUSE)

前端 未结 7 491
你的背包
你的背包 2020-12-04 04:47

I am trying to deploy Rails app with the Puma web server. When trying to start Puma server with a config file bundle exec puma -C config/puma.rb I get an error

相关标签:
7条回答
  • 2020-12-04 05:42

    If the above solutions don't work on ubuntu/linux then you can try this

    sudo fuser -k -n tcp port
    

    Run it several times to kill processes on your port of choosing. port could be 3000 for example. You would have killed all the processes if you see no output after running the command

    0 讨论(0)
提交回复
热议问题