新一篇: windows下的rails2.02環(huán)境搭建 | 舊一篇: 在Windows平臺(tái)使用Apache2.2和Mongrel運(yùn)行Ruby on Railswindows平臺(tái)本地化安裝Mongrel 一、什么是Mongrelhttp://mongrel./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號(hào)稱(chēng)是fast,就想體驗(yàn)一下,gem網(wǎng)絡(luò)安裝幾次都是超時(shí),最后不得不選擇本地安裝,其間頗費(fèi)周折,經(jīng)梳理后,把安裝過(guò)程寫(xiě)下來(lái),大家共享。二、下載需要的gem安裝包mongrel-0.3.13.3 : http:///frs/downloa ... .3.13.3-mswin32.gemgem_plugin-0.2.1 : http:///frs/download.php/9199/gem_plugin-0.2.1.gemwin32-service-0.5.2 : http:///frs/downloa ... e-0.5.2-mswin32.gemmongrel需要依賴(lài)gem_plugin和win32-service這兩個(gè)庫(kù),都需要下載到本地三、執(zhí)行安裝請(qǐng)注意安裝順序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一定要按照順序安裝四、啟動(dòng)服務(wù)進(jìn)入rails應(yīng)用目錄cd E:\ruby\demo啟動(dòng)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的服務(wù)還需要mongrel_service-0.1.gem,這里就不詳細(xì)介紹了 |
|
來(lái)自: 耍庫(kù) > 《吳延峰個(gè)人圖書(shū)館》