On Thu, Feb 9, 2012 at 05:54, honey ruby <emailtohoneyr...@gmail.com> wrote:

> hi everyone i just typed ruby script/server -d and then after when i
> type again it is not working. i got this error
>
> [2012-02-09 16:19:54] WARN  TCPServer Error: Address already in use -
> bind(2)
> Exiting
> /usr/lib/ruby/1.8/webrick/utils.rb:73:in `initialize': Address already
> in use - bind(2) (Errno::EADDRINUSE)

Right.  You told your server to go into "daemon mode" (that's what the
-d did), which is why it *seemed* to exit.  Technically the process
you started did exit -- but it started another, which is what's still
using that address (port).  You can't run another copy of the server
unless you either kill the current one or use a different port.
Otherwise, the system wouldn't know which of the two should answer if
someone tries to connect to that port.

-Dave

-- 
Dave Aronson:  Available Cleared Ruby on Rails Freelancer
(NoVa/DC/Remote) -- see www.DaveAronson.com, and blogs at
www.Codosaur.us, www.Dare2XL.com, www.RecruitingRants.com

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to