首页 > 代码库 > RabbitMQ安装后启动出错:- unable to connect to epmd on blockstorage: timeout (timed out)
RabbitMQ安装后启动出错:- unable to connect to epmd on blockstorage: timeout (timed out)
具体出错信息如下:
[root@blockstorage ~]# rabbitmqctl change_password guest RABBIT_PASSChanging password for user "guest" ...Error: unable to connect to node rabbit@blockstorage: nodedownDIAGNOSTICS===========nodes in question: [rabbit@blockstorage]hosts, their running nodes and ports:- unable to connect to epmd on blockstorage: timeout (timed out)current node details:- node name: rabbitmqctl2309@blockstorage- home dir: /var/lib/rabbitmq- cookie hash: 9MAewQpNA2Hn9l2WPQ++rw==
解决方案:在/etc/hosts文件中加入一行“127.0.0.1 主机名”即可,加入IP地址和主机名是不行的。
[root@blockstorage ~]# vi /etc/hosts127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4::1 localhost localhost.localdomain localhost6 localhost6.localdomain6127.0.0.1 blockstorage192.168.155 blockstorage
然后,启动查看状态皆OK
[root@blockstorage ~]# systemctl start rabbitmq-server.service[root@blockstorage ~]# rabbitmqctl statusStatus of node rabbit@blockstorage ...[{pid,2378}, {running_applications,[{rabbit,"RabbitMQ","3.1.5"}, {mnesia,"MNESIA CXC 138 12","4.11"}, {os_mon,"CPO CXC 138 46","2.2.14"}, {xmerl,"XML parser","1.3.6"}, {sasl,"SASL CXC 138 11","2.3.4"}, {stdlib,"ERTS CXC 138 10","1.19.4"}, {kernel,"ERTS CXC 138 10","2.16.4"}]}, {os,{unix,linux}}, {erlang_version,"Erlang R16B03-1 (erts-5.10.4) [source] [64-bit] [smp:2:2] [async-threads:30] [hipe] [kernel-poll:true]\n"}, {memory,[{total,35634312}, {connection_procs,2800}, {queue_procs,5600}, {plugins,0}, {other_proc,13661600}, {mnesia,60544}, {mgmt_db,0}, {msg_index,22776}, {other_ets,779744}, {binary,10464}, {code,16441504}, {atom,594537}, {other_system,4054743}]}, {vm_memory_high_watermark,0.4}, {vm_memory_limit,6664211660}, {disk_free_limit,1000000000}, {disk_free,82254290944}, {file_descriptors,[{total_limit,924}, {total_used,3}, {sockets_limit,829}, {sockets_used,1}]}, {processes,[{limit,1048576},{used,123}]}, {run_queue,0}, {uptime,13}]...done.[root@blockstorage ~]#
RabbitMQ安装后启动出错:- unable to connect to epmd on blockstorage: timeout (timed out)
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。