zoukankan      html  css  js  c++  java
  • 报错:搭建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"   #创建成功
  • 相关阅读:
    attr系列
    面对对象中的反射
    Python中的内置函数(比较重要的)
    过滤莫文件夹下所有文件和子文件夹中的文件,并把路径打印出-----面对过程的编程
    python中字典的几个方法介绍
    python中字符串的几个方法介绍
    python中列表与元组
    win7上python2.7连接mysql数据库
    练习-三级菜单
    练习-模拟商城购物车
  • 原文地址:https://www.cnblogs.com/xuhao0705/p/14233070.html
Copyright © 2011-2022 走看看