4

On lion OS, after installation, when running, error happens. At first, not using rabbitmq-env.config file, starting by "sudo rabbitmq-server", the following message shows:

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)

Then I add rabbitmq-env.conf file. The content is as follows:

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",[]}

I think the message means short node can't be used. But I don't know how to control rabbitmq-server for using name, rather than sname?

Chen Yu
  • 3,955
  • 1
  • 24
  • 51

1 Answers1

6

Search on Google found this link, which should fix the problem you see at the beginning. Here's the relevant part in case it become inaccessible:

making sure that your machine name (rs-mbp in my case) is in /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
Raymond Tau
  • 3,429
  • 26
  • 28
  • Due to chinese country's firewall, the above link of wordpress.com can't be visited. After finding rabbitmq-server is a script file, I opened the file, and find in the last paragprah, -sname is hardcoded. After modifying the source code of 'rabbitmq-server, the problem has been solved. – Chen Yu May 26 '12 at 22:25
  • I feel sorry for that. The part of the blog had been updated in the answer. – Raymond Tau May 26 '12 at 23:50
  • Where do you find your "machine name"? – geoidesic Dec 30 '14 at 13:27
  • 1
    The machine name could be find by executing the command `hostname` in shell. – Raymond Tau Dec 31 '14 at 01:59