Phusion Passenge 相关专题

皇甫波峻
2023-12-01
[url=http://www.iteye.com/topic/182312]mod_rails尝鲜[/url]
[url=http://www.modrails.com/]官方网站modrails[/url]
[url=http://www.modrails.com/documentation/Users%20guide.html]Users%20guide[/url]


自夸:
[quote]

Introducing Phusion Passenger™
Phusion Passenger™ — a.k.a. mod_rails or mod_rack — makes deployment of Ruby web applications, such as those built on the revolutionary Ruby on Rails web framework, a breeze. It follows the usual Ruby on Rails conventions, such as “Don’t-Repeat-Yourself”.

* Deployment is only a matter of uploading application files. No Ruby (on Rails)-specific server configuration required!
* Built on the industry standard Apache web server.
* Allows Ruby on Rails applications to use about 33% less memory, when used in combination with Ruby Enterprise Edition (optional).
* Zero maintenance. No port management, server process monitoring or stale file cleanup required. Errors are automatically recovered whenever possible.
* Designed for performance, stability and security. Phusion Passenger should never crash Apache even in case of crashing Rails applications.
* Well-documented, for both system administrators and developers!


[/quote]

一篇介绍:
[quote]Passenger是一个用于Apache2的模块,用它可以方便、高效地部署Rails应用程序。但目前它还只能用于*nix的操作系统。

Passenger的安装十分简单,在装好了Ruby,有Rubygems的系统中输入:

gem install passenger


等待安装完成,然后输入:

passenger-install-apache2-module


然后安装程序便会自动查找编译需要的包(g++、Apache、APR、Rake)并进行编译,如果没有找到相应的包,安装程序还会根据操作系统告诉你要执行哪些操作来安装那些包。安装程序完成编译后,它会给出Apache配置中的指令,只需复制到Apache的配置文件中即可。

当Apache加载了Passenger模块后,Passenger会自动检测每个虚拟主机(VirtualHost)的文档根目录(DocumentRoot)是否是一个合格的Rails应用,如果是,那么它就会自动启动Rails的运行时(这个自动检测可以用RailsAutoDetect off指令来关闭)。

其他的指令和问题可以查看用户手册。

Passenger的运行机制和Apache的FastCGI比较类似,可以根据请求的数量动态产生Rails的运行时并接受请求,用户可以自己设定产生运行时的最大数量(RailsMaxPoolSize)。

总体上来说,Passenger的部署是所有Rails部署方式中最简单的,而且支持自动产生运行时实例可以解决很多Mongrel方式的并发问题,相信前途是一片光明。如果能直接进入Ubuntu、Gentoo、CentOS、Rpmforge等软件包仓库,那么还能进一步简化他的安装。唯一的缺憾便是它不支持Windows。[/quote]
 类似资料: