4

在lion OS上,安装后,运行时会发生错误。起初,不使用rabbitmq-env.config file,从 开始"sudo rabbitmq-server",以下消息显示:

yus-iMac:rabbitmq yuchen$ sudo rabbitmq-server
Activating RabbitMQ plugins ...

********************************************************************************
********************************************************************************

0 plugins activated:

ERROR: epmd error for host "yus-iMac": address (unable to establish tcp connection)

然后我添加rabbitmq-env.conf文件。内容如下:

RABBITMQ_NODENAME=rabbitb@yus-iMac.local

When starting, another error message is given:

yus-iMac:rabbitmq yuchen$ sudo rabbitmq-server
Activating RabbitMQ plugins ...

********************************************************************************
********************************************************************************

0 plugins activated:

{error_logger,{{2012,5,26},{21,47,13}},"Can't set short node name!\n Please check your configuration\n",[]}

我认为该消息意味着不能使用短节点。但我不知道如何控制rabbitmq-server使用name,而不是sname

4

1 回答 1

6

在 Google 上搜索找到了这个链接,它应该可以解决您在开始时看到的问题。以下是相关部分,以防无法访问:

确保您的机器名称(在我的情况下为 rs-mbp)在 /private/etc/hosts

##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1       localhost rs-mbp
255.255.255.255 broadcasthost
::1             localhost
fe80::1%lo0     localhost
于 2012-05-26T15:57:19.807 回答