windows平台本地化安装Mongrel

windows平台本地化安装Mongrel 一、什么是Mongrelhttp://mongrel.rubyforge.org/Mongrel is a fast HTTP library and server for Ruby that is intended for hosting Ruby web applications of any kind using plain HTTP rather than FastCGI or SCGI. It is framework agnostic and already supports Ruby On Rails, Og+Nitro, Camping, and IOWA frameworks.mongrel号称是fast,就想体验一下,gem网络安装几次都是超时,最后不得不选择本地安装,其间颇费周折,经梳理后,把安装过程写下来,大家共享。二、下载需要的gem安装包mongrel-0.3.13.3 : http://rubyforge.org/frs/downloa ... .3.13.3-mswin32.gemgem_plugin-0.2.1 : http://rubyforge.org/frs/download.php/9199/gem_plugin-0.2.1.gemwin32-service-0.5.2 : http://rubyforge.org/frs/downloa ... e-0.5.2-mswin32.gemmongrel需要依赖gem_plugin和win32-service这两个库,都需要下载到本地三、执行安装请注意安装顺序gem install win32-service-0.5.2-mswin32.gem --localgem install gem_plugin-0.2.1.gem --localgem install mongrel-0.3.13.3-mswin32.gem --local一定要按照顺序安装四、启动服务进入rails应用目录cd E:/ruby/demo启动mongrelE:/ruby/demo>mongrel_rails start** Starting Mongrel listening at 0.0.0.0:3000** Starting Rails with development environment ...** Rails loaded.** Loading any Rails specific GemPlugins** Signals ready.  INT => stop (no restart).** Mongrel available at 0.0.0.0:3000** Use CTRL-C to stop.到这里mongrel就安装成功了,如果要把mongrel安装成win32的服务还需要mongrel_service-0.1.gem,这里就不详细介绍了

你可能感兴趣的:(windows,平台,rails,ruby,library,server)