人的一生,有许多事情,是需要放在心里慢慢回味的,过去的就莫要追悔,一切向前看吧 任何打击都不足以成为你堕落的借口,即使你改变不了这个世界,你却依然可以改变自己,选择条正确的路永远走下去。
返回顶部

报错:搭建openstack,创建消息队列用户失败

执行创建消息队列用户时:

1 [root@ct ~]# rabbitmqctl add_user openstack RABBIT_PASS

出现报错信息:

 1 Error: unable to connect to node rabbit@localhost: nodedown
 2 
 3 DIAGNOSTICS
 4 ===========
 5 
 6 attempted to contact: [rabbit@localhost]
 7 
 8 rabbit@localhost:
 9   * connected to epmd (port 4369) on localhost
10   * epmd reports node 'rabbit' running on port 25672
11   * TCP connection succeeded but Erlang distribution failed
12 
13   * Hostname mismatch: node "rabbit@ct" believes its host is different. Please ensure that hostnames resolve the same way locally and on "rabbit@ct"
14 
15 
16 current node details:
17 - node name: 'rabbitmq-cli-70@ct'
18 - home dir: /var/lib/rabbitmq
19 - cookie hash: JUOSnyAarD/iR1GN1NJGTQ==

解决:无其他问题,原来是由于# bash 又开了一个shell,# exit 退出到原来的shell执行就行

 1 [root@ct ~]# exit
 2 exit
 3 [root@localhost yum.repos.d]# exit
 4 登出
 5 
 6 Connection closed by foreign host.
 7 
 8 Disconnected from remote host(最小化1) at 13:46:32.
 9 
10 Type `help' to learn how to use Xshell prompt.
11 [c:\~]$ 
12 
13 Connecting to 192.168.247.11:22...  #重新连接
14 Connection established.
15 To escape to local shell, press 'Ctrl+Alt+]'.
16 
17 WARNING! The remote SSH server rejected X11 forwarding request.
18 Last login: Fri Dec 11 19:42:30 2020
19 [root@ct ~]# rabbitmqctl add_user openstack RABBIT_PASS
20 Creating user "openstack"   #创建成功

 

posted @ 2021-01-04 23:01  yy1299050947  阅读(339)  评论(0编辑  收藏  举报