[英]Ruby on Rails webrick server shuts down on its own in RubyMine
I recently started using RubyMine and for some reason I can't start the webrick server to see my application I am building. 我最近开始使用RubyMine,由于某种原因,我无法启动webrick服务器来查看正在构建的应用程序。 I like RubyMine so far and would love to get it working and am wondering if anyone has seen this error: 到目前为止,我很喜欢RubyMine,很想让它正常工作,并且想知道是否有人看到此错误:
[2014-06-02 16:40:41] INFO WEBrick 1.3.1
[2014-06-02 16:40:41] INFO ruby 1.9.3 (2014-02-24) [i386-mingw32]
Exiting
[2014-06-02 16:40:41] WARN TCPServer Error: Permission denied - bind(2)
C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/webrick/utils.rb:85:in `initialize': Permission denied - bind(2) (Errno::EACCES)
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/webrick/utils.rb:85:in `new'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/webrick/utils.rb:85:in `block in create_listeners'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/webrick/utils.rb:82:in `each'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/webrick/utils.rb:82:in `create_listeners'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/webrick/server.rb:82:in `listen'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/webrick/server.rb:70:in `initialize'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/webrick/httpserver.rb:45:in `initialize'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.4.5/lib/rack/handler/webrick.rb:10:in `new'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.4.5/lib/rack/handler/webrick.rb:10:in `run'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.4.5/lib/rack/server.rb:268:in `start'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.18/lib/rails/commands/server.rb:70:in `start'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.18/lib/rails/commands.rb:55:in `block in <top (required)>'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.18/lib/rails/commands.rb:50:in `tap'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.18/lib/rails/commands.rb:50:in `<top (required)>'
from C:/Users/Bear/RubymineProjects/HandCoOp/script/rails:6:in `require'
from C:/Users/Bear/RubymineProjects/HandCoOp/script/rails:6:in `<top (required)>'
from -e:1:in `load'
from -e:1:in `<main>'
Process finished with exit code 1
I did a little research and it seemed like there is a process on port 3000 already running? 我做了一些研究,似乎在端口3000上已经有一个进程正在运行? I do not know if this is a correct assumption and I will keep looking around the web for troubleshooting options. 我不知道这是否是正确的假设,我将继续在网上寻找故障排除选项。 Thanks for anyone who takes a look! 多谢有识之士!
Add in Gemfile:-- 添加Gemfile:-
gem 'thin'
Then:- 然后:-
bundle install
And start the server as:- 并以以下方式启动服务器:
thin start
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.