• 报错:搭建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"   #创建成功
  • 相关阅读:
    28.Implement strStr()【leetcod】
    35. Search Insert Position【leetcode】
    27. Remove Element【leetcode】
    20. Valid Parentheses【leetcode】
    14. Longest Common Prefix【leetcode】
    Java的String中的subString()方法
    charAt()的功能
    spring整合mybatis
    AOP
    代理模式
  • 原文地址:https://www.cnblogs.com/xuhao0705/p/14233070.html
Copyright © 2020-2023  润新知