ZC构建设置RabbitMQ的配方。
rod.recipe.rabbitmq的Python项目详细描述
构建下载和安装rabbitmq的方法。
版权和许可
版权所有2009、2010、2011 Tobias Rodaebel
该软件是在GNU Lesser通用公共许可下发布的, 版本3。
学分
感谢martijn pieters重构脚本生成以确保 始终为已安装的版本使用适当的rabbitmq服务器脚本。
简要文档
这个食谱有很多选择:
- erlang路径
- 查找erlc命令的路径(默认为在路径中查找)。
- 网址
- 下载rabbitmq源发行版的url。
- 饼干
- 作为cookie传递给erl运行时的可选字符串(-setcookie)。
- 制作
- 备用make命令(例如gmake)。
要进一步自定义rabbitmq服务器配置,请创建rabbitmq env 文件,位于构建的etc/目录中,在RabbitMQ configuration guide之后设置环境变量。
您还可以在同一位置创建rabbitmq.config文件以提供 erlang配置语句。
测试
我们将定义配方使用的构建模板:
>>> buildout_cfg = """ ... [buildout] ... parts = rabbitmq ... offline = true ... ... [rabbitmq] ... recipe = rod.recipe.rabbitmq ... url = http://www.rabbitmq.com/releases/rabbitmq-server/v2.4.1/rabbitmq-server-2.4.1.tar.gz ... """
我们将从创建构建开始:
>>> import os.path >>> write('buildout.cfg', buildout_cfg)
运行构建会给我们带来:
>>> output = system(buildout) >>> if output.endswith("ebin ebin/rabbit.app < ebin/rabbit_app.in\n"): True ... else: print output True
更改
2.0.0 2011年5月18日
- Uses the buildout download cache if available.
- Refactored script generation: reuses the existing scripts and customize them using the built-in rabbitmq-env sourcing option. This ensures we always use an appropriate rabbitmq-server script for the installed version.
- Abandoned obsolete prefix buildout option.
- Updated documentation.
1.1.7 2011年4月11日
- Added ‘make’ buildout option to specify an alternate make command (e.g. gmake).
1.1.6 2010-06-21
- Using rabbit@localhost as NODENAME in order to provide portability of the database across machines independent of the hostname since you can not start RabbitMQ on a different machine with a different hostname (the database is tied to the hostname).
1.1.5 2010-06-21
- Added support for setting an optional erlang cookie (-setcookie) through the ‘cookie’ option.
1.1.4 2010-05-09
- Fixed issue where rabbitmq scripts used an incorrect default Erlang path when no erlang-path option was specified.
1.1.3 2010-05-03
- Fixed parameter in generated rabbitmqctl script (-sname instead of -name).
1.1.2 2010-05-02
- Fixed parameter in generated rabbitmq-server script (-sname instead of -name).
1.1.1 2010-03-21
- Fixes an issue where the Erlang path wasn’t set correctly.
1.1.0 2010年3月20日
- Updated for RabbitMQ 1.7.2.
1.0.0 2009-08-23
- Initial release.