您好我有一个全新安装的VPS CentOS 6,我想在其上安装RabbitMQ。我使用存储库方法从此处Erlang安装了Erlang,并从此处RabbitMQ RPM安装了RabitMQ rpm包。当我运行RabbitMQ服务器时出现此错误:
Error: unable to perform an operation on node 'rabbit@sXXX-XXX-XXX-XXX'. Please see diagnostics information and suggestions below.
Most common reasons for this are:
* Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
* CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
* Target node is not running
In addition to the diagnostics info below:
* See the CLI, clustering and networking guides on http://rabbitmq.com/documentation.html to learn more
* Consult server logs on node rabbit@sXXX-XXX-XXX-XXX
DIAGNOSTICS
===========
attempted to contact: ['rabbit@sXXX-XXX-XXX-XXX']
rabbit@sXXX-XXX-XXX-XXX:
* unable to connect to epmd (port 4369) on sXXX-XXX-XXX-XXX: timeout (timed out)
Current node details:
* node name: 'rabbitmqcli30@sXXX-XXX-XXX-XXX'
* effective user's home directory: /var/lib/rabbitmq
* Erlang cookie hash: BHd73A3DMRT7tM1xEdGGvg==
[root@sXXX-XXX-XXX-XXX rabbitmq]#
我搜索了谷歌,我能够弄清楚我是不是错了,我正在尝试在我的服务器上运行RabbitMQ,所以我需要编辑/ etc / hosts文件并添加sXXX-XXX-XXX -XXX到它指向localhost服务器ip 127.0.0.1(在localhost4.localdomain之后)的行,如下所示:
/etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 sXXX-XXX-XXX-XXX
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
YY.YY.YY.Y sXXX-XXX.XXX-XXX.secureserver.net sXXX-XXX.XXX-XXX
现在我得到一个我无法克服的新错误,它说:
DIAGNOSTICS
===========
attempted to contact: ['rabbit@sXXX-XXX-XXX-XXX']
rabbit@sXXX-XXX-XXX-XXX:
* connected to epmd (port 4369) on sXXX-XXX-XXX-XXX
* epmd reports: node 'rabbit' not running at all
no other nodes on sXXX-XXX-XXX-XXX
* suggestion: start the node
Current node details:
* node name: 'rabbitmqcli35@sXXX-XXX-XXX-XXX'
* effective user's home directory: /var/lib/rabbitmq
* Erlang cookie hash: BHd73A3DMRT7tM1xEdGGvg==
欢迎任何帮助。
感谢。