一、ping不同download.yunwei.edu
内网服务地址必须在前面
[root@localhost ~]# vim /etc/resolv.conf # Generated by NetworkManager nameserver 192.168.254.251 nameserver 223.5.5.5
二、无法连接到主机
[root@localhost ~]# rabbitmqctl change_password guest admin Error: unable to connect to node rabbit@localhost: nodedown DIAGNOSTICS =========== attempted to contact: [rabbit@localhost] rabbit@localhost: * connected to epmd (port 4369) on localhost * epmd reports node 'rabbit' running on port 25672 * TCP connection succeeded but Erlang distribution failed * suggestion: hostname mismatch? * suggestion: is the cookie set correctly? * suggestion: is the Erlang distribution using TLS? current node details: - node name: 'rabbitmq-cli-35@jam0' - home dir: /var/lib/rabbitmq - cookie hash: f3vStYt4wn/ej6MSG0MD7A==
碰到这种情况可能是主机名没有修改过来,登出后重新登入即可
[root@jam0 ~]# rabbitmqctl change_password guest admin Changing password for user "guest" ...
三、节点无法加入到集群中
先启动节点 :rabbitmqctl start_app
再删除/var/lib/rabbitmq/下的文件
重启rabbitmq服务:systemctl restart rabbitmq-server.service
再次发送/etc/rabbitmq/rabbitmq-env.conf 到节点,并进行修改
重启rabbitmq服务