Forum: Ruby on Rails newbie-server bound to 3000, cannot disconnect

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Fb8f512d95fa45e52f7cdd02e00d6c9f?d=identicon&s=25 Mason Kessinger (Guest)
on 2006-04-04 16:42
I know there is a super easy answer to this, i just can't remember. I
have fired up my server on port 3000... and want to disconnect it. easy.

ERROR MESSAGE:

=> Booting lighttpd (use 'script/server webrick' to force WEBrick)
=> Rails application started on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server (see config/lighttpd.conf for options)
2006-04-04 09:22:26: (network.c.300) can't bind to port:  3000 Address
already in use
Exiting

THANKS
2b891e820c238ded365d035771603f21?d=identicon&s=25 Bill Walton (Guest)
on 2006-04-04 17:29
(Received via mailing list)
Hi Mason,

Does calling it with '-d' (per line three in the error message) not do
the
trick?

Bill
----- Original Message -----
From: "Mason Kessinger" <masonkessinger@gmail.com>
To: <rails@lists.rubyonrails.org>
Sent: 2006-04-04 9:42 AM
Subject: [Rails] newbie-server bound to 3000, cannot disconnect
A2c85dc5ee81b12e3cc0a6522e8d079d?d=identicon&s=25 Chris Hall (Guest)
on 2006-04-04 19:41
(Received via mailing list)
That message is the script/server startup message and it's telling you
that
something else is already using port 3000 so it can't run.

Most likely you already have a instance of lighttpd running on port
3000.

kill the process then try running script/server again. (if on *nix, run
ps
a|grep light to get the pid)

if you edit the config/lighttpd.conf file, you can change the port.
this is
useful when you have multiple apps and want to run them simultaneously.
This topic is locked and can not be replied to.