on linux - "lsof | grep -i ruby"

tom

On May 20, 2011, at 16:03 , amrit pal pathak wrote:

> 
> 
> On May 18, 5:37 am, Peter De Berdt <[email protected]> wrote:
>> On 18 May 2011, at 11:26, amrit pal pathak wrote:
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>> I made a new rails app and when i started the server ,it gave
>>> following error message.
>> 
>>> => Booting Mongrel
>>> => Rails 2.3.8 application starting onhttp://0.0.0.0:3000
>>> => Call with -d to detach
>>> => Ctrl-C to shutdown server
>>> Exiting
>>> /usr/lib/ruby/1.8/mongrel/tcphack.rb:12:in
>>> `initialize_without_backlog': Address already in use - bind(2)
>>> (Errno::EADDRINUSE)
>>>    from /usr/lib/ruby/1.8/mongrel/tcphack.rb:12:in `initialize'
>>>    from /usr/lib/ruby/1.8/mongrel.rb:93:in `new'
>>>    from /usr/lib/ruby/1.8/mongrel.rb:93:in `initialize'
>>>    from /var/lib/gems/1.8/gems/rack-1.1.0/lib/rack/handler/mongrel.rb:
>>> 10:in `new'
>>>    from /var/lib/gems/1.8/gems/rack-1.1.0/lib/rack/handler/mongrel.rb:
>>> 10:in `run'
>>>    from /var/lib/gems/1.8/gems/rails-2.3.8/lib/commands/server.rb:111
>>>    from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
>>> `gem_original_require'
>>>    from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
>>>    from script/server:3
>> 
>>> Please help to resolve.
>> 
>> You already have a server running on port 3000. Probably another  
>> Webrick server you started earlier in a different terminal window. It  
>> even says so: Address already in use. I don't see how it could be any  
>> more obvious.
>     Is there any way to check,how many ports are already in use,so
> that i can stop the application which are already running on those.?
> 
> Thanks
> 
> -- 
> 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 [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/rubyonrails-talk?hl=en.

--
Maxwell Render CZ
Autorizovany distributor Maxwell renderu pro Ceskou republiku

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to