我想使用port no localhost:3000 for rails並且已經採用其他進程如何釋放此端口?如何在Ubuntu中釋放端口
我已經運行此命令
ruby abc/script/server
,並面臨着這樣的錯誤
/usr/lib/ruby/1.9.1/webrick/utils.rb:85:in `initialize': Address already in use - bind(2) (Errno::EADDRINUSE)
from /usr/lib/ruby/1.9.1/webrick/utils.rb:85:in `new'
from /usr/lib/ruby/1.9.1/webrick/utils.rb:85:in `block in create_listeners'
from /usr/lib/ruby/1.9.1/webrick/utils.rb:82:in `each'
from /usr/lib/ruby/1.9.1/webrick/utils.rb:82:in `create_listeners'
from /usr/lib/ruby/1.9.1/webrick/server.rb:82:in `listen'
from /usr/lib/ruby/1.9.1/webrick/server.rb:70:in `initialize'
from /usr/lib/ruby/1.9.1/webrick/httpserver.rb:45:in `initialize'
from /usr/lib/ruby/vendor_ruby/rack/handler/webrick.rb:10:in `new'
from /usr/lib/ruby/vendor_ruby/rack/handler/webrick.rb:10:in `run'
from /var/www/abc/vendor/rails/railties/lib/commands/server.rb:111:in `<top (required)>'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from abc/script/server:3:in `<main>'
什麼是'ps -e | grep紅寶石結果? – methyl