ZC构建设置RabbitMQ的配方。

rod.recipe.rabbitmq的Python项目详细描述


构建下载和安装rabbitmq的方法。

学分

感谢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.

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java置换相关算法   在Java中读取/打开文本文件   java为什么这段代码不适用于CodeEval?   java如何将日历转换为JSON   从txt文件中读取字符串并将其存储到java中的字符数组中   字符编码Java ResourceBundles umlauts搞砸了   java为什么hashmap会根据总大小而不是填充的存储桶调整大小   java如何将Excel单元格中的数字字符串读取为字符串(而不是数字)?   java Guava的LocalCache无法使用,为什么?   java有没有办法强制JVM在单个处理器或内核上运行   java Eclipse不安装软件   将字节转换为java字符串(可能是汉字)   Java正则表达式:提取函数名   JavaTestNG:如何从多个类中指定测试方法顺序?