Rails server says port already used, how to kill that process?

前端 未结 12 2651
深忆病人
深忆病人 2020-12-02 03:26

I\'m on a mac, doing:

rails server

I get:

2010-12-17 12:35:15] INFO  WEBrick 1.3.1
[2010-12-17 12:35:15] INFO  ruby 1.8.7 (         


        
12条回答
  •  忘掉有多难
    2020-12-02 03:46

    By default, rails server uses port 3000.
    So, you have 2 options to run rails server.
    1. Either you can run the server on other port by defining custom port using the following command
    rails s -p 3001
    2. Or you can kill all the running ruby process by running following command
    killall -9 ruby
    then run rails server

提交回复
热议问题