ruby - how do I kill a port in use -- eventmachine -


i following error:

eventmachine.rb:534:in `start_tcp_server': no acceptor (port in use or requires root privileges) 

i'm not sure process or port , want kill can run script again.

how do that?

ps ax | grep ruby kill -9 [pid] 

example:

ps ax | grep ruby #=> 857 pts/19     sl+    0:04 /home/andreydeineko/.rvm/rubies/ruby-2.2.3/bin/ruby bin/rails server #=> 14639 pts/18   s+     0:00 grep --color=auto --exclude-dir=.bzr --exclude-dir=cvs --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn rails #=> 25368 pts/17   sl+    0:02 /home/andreydeineko/.rvm/rubies/ruby-2.2.3/bin/ruby bin/rails c kill -9 857 ps ax | grep ruby #=> 14639 pts/18   s+     0:00 grep --color=auto --exclude-dir=.bzr --exclude-dir=cvs --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn rails #=> 25368 pts/17   sl+    0:02 /home/andreydeineko/.rvm/rubies/ruby-2.2.3/bin/ruby bin/rails c 

Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -