这是日志代码,但我不知道它是否重新启动,我应该怎么知道? 这是什么语言?
日志文件
Wed Oct 10 11:41:38 -0400 2012: REQUEST DATA: "\r\n\r\n"
---
PARAMS: {}
---
** INT signal received.
** Starting Mongrel listening at 0.0.0.0:3001
** Starting Rails with production environment...
** Mounting Rails at /redmine...
** Rails loaded.
** Loading any Rails specific GemPlugins
** Loading C:\\BitNami/apps/redmine\\scripts\\mongrel_rails_envvars external config script
** Signals ready. INT => stop (no restart).
** Mongrel 1.1.5 available at 0.0.0.0:3001
** Use CTRL-C to stop.
C:/BitNami/ruby/lib/ruby/gems/1.8/gems/coderay-1.0.6/lib/coderay/helpers/file_type.rb:19: warning: already initialized constant UnknownFileType
C:/BitNami/ruby/lib/ruby/gems/1.8/gems/coderay-1.0.6/lib/coderay/helpers/file_type.rb:126: warning: already initialized constant TypeFromExt
C:/BitNami/ruby/lib/ruby/gems/1.8/gems/coderay-1.0.6/lib/coderay/helpers/file_type.rb:132: warning: already initialized constant TypeFromShebang
C:/BitNami/ruby/lib/ruby/gems/1.8/gems/coderay-1.0.6/lib/coderay/helpers/file_type.rb:138: warning: already initialized constant TypeFromName
** INT signal received.
** Starting Mongrel listening at 0.0.0.0:3001
** Starting Rails with production environment...
** Mounting Rails at /redmine...
** Rails loaded.
** Loading any Rails specific GemPlugins
** Loading C:\\BitNami/apps/redmine\\scripts\\mongrel_rails_envvars external config script
** Signals ready. INT => stop (no restart).
** Mongrel 1.1.5 available at 0.0.0.0:3001
** Use CTRL-C to stop.
Mon Oct 15 11:05:14 -0400 2012: Read error: #<Errno::ECONNABORTED: An established connection was aborted by the software in your host machine.>
C:/BitNami/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/../lib/mongrel/http_response.rb:137:in `write'
C:/BitNami/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/../lib/mongrel/http_response.rb:137:in `write'
C:/BitNami/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/../lib/mongrel/http_response.rb:103:in `send_body'
C:/BitNami/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/../lib/mongrel/http_response.rb:147:in `finished'
C:/BitNami/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/../lib/mongrel.rb:165:in `process_client'
C:/BitNami/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/../lib/mongrel.rb:285:in `run'
C:/BitNami/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/../lib/mongrel.rb:285:in `initialize'
C:/BitNami/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/../lib/mongrel.rb:285:in `new'
C:/BitNami/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/../lib/mongrel.rb:285:in `run'
C:/BitNami/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/../lib/mongrel.rb:268:in `initialize'
C:/BitNami/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/../lib/mongrel.rb:268:in `new'
C:/BitNami/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/../lib/mongrel.rb:268:in `run'
C:/BitNami/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/../lib/mongrel/configurator.rb:282:in `run'
C:/BitNami/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/../lib/mongrel/configurator.rb:281:in `each'
C:/BitNami/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/../lib/mongrel/configurator.rb:281:in `run'
C:/BitNami/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/mongrel_rails:128:in `run'
C:/BitNami/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/../lib/mongrel/command.rb:212:in `run'
C:/BitNami/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mingw32/bin/mongrel_rails:281
C:/BitNami/ruby/bin/mongrel_rails:19:in `load'
C:/BitNami/ruby/bin/mongrel_rails:19
C:/BitNami/ruby/lib/ruby/gems/1.8/gems/coderay-1.0.6/lib/coderay/helpers/file_type.rb:19: warning: already initialized constant UnknownFileType
C:/BitNami/ruby/lib/ruby/gems/1.8/gems/coderay-1.0.6/lib/coderay/helpers/file_type.rb:126: warning: already initialized constant TypeFromExt
C:/BitNami/ruby/lib/ruby/gems/1.8/gems/coderay-1.0.6/lib/coderay/helpers/file_type.rb:132: warning: already initialized constant TypeFromShebang
C:/BitNami/ruby/lib/ruby/gems/1.8/gems/coderay-1.0.6/lib/coderay/helpers/file_type.rb:138: warning: already initialized constant TypeFromName
Mon Oct 15 15:05:02 -0400 2012:
答案 0 :(得分:1)
它不是一种语言,它只是来自Mongrel应用程序的日志/控制台输出,包括一些错误堆栈信息,就像你在Ruby中的其他任何地方一样。
可以在此处找到辨别Mongrel是否正在启动的赠品:** Starting Mongrel listening at 0.0.0.0:3001
- 表示Mongrel的实例正在开始侦听端口3001.据我所知,有两个实例无法使用同一个端口,所以上面的日志,其中启动行出现两次,表示重新启动。