具体出错信息如下: [root@blockstorage ~]# rabbitmqctl change_password guest RABBIT_PASS Changing password for user "guest" ... Error: unable to connect to node rabbit@blockstorage: nodedown DIAGNOSTICS =========== 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/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 127.0.0.1 blockstorage 192.168.155 blockstorage
然后,启动查看状态皆OK
[root@blockstorage ~]# systemctl start rabbitmq-server.service [root@blockstorage ~]# rabbitmqctl status Status 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 ~]#
(责任编辑:IT) |