ken.truong123
ken.truong123

Reputation: 171

servers with ruby

I was doing the following on the terminal:

script/server

it says the server host:3000 was being used,

when I typed it into web browser, the page loads but when I click on my environment the info doesn't show up. I get an error message

if I change the server by typing in

script/server -p 3001

for example, it works,

so my question is: how does one disconnect or erase the previous "3000" port so that I can use 3000 instead of 3001?

Is there a command line for this in the terminal?

Thanks.

Upvotes: 0

Views: 94

Answers (1)

rfunduk
rfunduk

Reputation: 30432

Port 3000 is being used by something else, so you need to stop whatever process that is first. Probably that is another script/server instance, so kill it. If it isn't, well, you can try sudo lsof -i :3000 to try and figure it out... but it might be easier to just reboot your box and try again :)

Upvotes: 4

Related Questions