我正在尝试使用 RabbitMQ 设置 mcollective。根据说明,我启用了 rabbit_stomp 插件,然后将端口设置为 6163:
[ {rabbit_stomp, [{tcp_listeners, [{"127.0.0.1",6163}]} ]} ].
但是,即使重新启动后,它似乎也不想将其设置为该端口。
tcp 0 0 0.0.0.0:54949 0.0.0.0:* LISTEN 13439/beam.smp
tcp 0 0 :::5672 :::* LISTEN 13439/beam.smp
tcp 0 0 :::61613 :::* LISTEN 13439/beam.smp
浏览网页时,上述代码似乎是适当的步骤,所以我错过了什么。
我正在运行以下命令:
[root@trp08-01 rabbitmq]# rpm -qi rabbitmq-server
Name : rabbitmq-server Relocations: (not relocatable)
Version : 2.8.1 Vendor: (none)
Release : 1 Build Date: Thu 22 Mar 2012 10:52:25 AM EDT
Install Date: Sat 28 Apr 2012 04:33:31 PM EDT Build Host: release-debian.localdomain
Group : Development/Libraries Source RPM: rabbitmq-server-2.8.1-1.src.rpm
Size : 3320919 License: MPLv1.1
Signature : DSA/SHA1, Thu 22 Mar 2012 10:55:48 AM EDT, Key ID f7b8cea6056e8e56
URL : http://www.rabbitmq.com/
Summary : The RabbitMQ server
Description :
RabbitMQ is an implementation of AMQP, the emerging standard for high
performance enterprise messaging. The RabbitMQ server is a robust and
scalable implementation of an AMQP broker.
[root@trp08-01 rabbitmq]# rpm -qi erlang
Name : erlang Relocations: (not relocatable)
Version : R14B Vendor: Fedora Project
Release : 03.3.el5 Build Date: Sun 07 Aug 2011 06:21:28 AM EDT
Install Date: Fri 27 Apr 2012 10:50:55 AM EDT Build Host: x86-11.phx2.fedoraproject.org
Group : Development/Languages Source RPM: erlang-R14B-03.3.el5.src.rpm
Size : 31472 License: ERPL
Signature : (none)
Packager : Fedora Project
URL : http://www.erlang.org
Summary : General-purpose programming language and runtime environment
Description :
Erlang is a general-purpose programming language and runtime
environment. Erlang has built-in support for concurrency, distribution
and fault tolerance. Erlang is used in several large telecommunication
在 CentOS 5.5 上
答案1
没关系。我应该学着更仔细地阅读文档:
http://www.rabbitmq.com/stomp.html
我拼错了 rabbitmq_stomp。更正如下:
[
{rabbitmq_stomp, [{tcp_listeners, [{"127.0.0.1", 6163},
{"::1", 6163}]}]}
].
有趣的是,Pro Puppet 书中也将其命名为 rabbit_stomp。我不确定这是书出版后对插件的更新还是书本身的错误。