zoukankan      html  css  js  c++  java
  • 简易安装linux中的rabbit。。。(rpm方式)

    下载三个安装包

    erlang-18.3-1.el7.centos.x86_64.rpm 

     socat-1.7.3.2-2.el7.x86_64.rpm

    rabbitmq-server-3.6.5-1.noarch.rpm

    要适配,在rabbit官网中查看想对应的版本

    依次进行安装,根据原来的系统,看是否需要安装依赖

    yum install

    build-essential openssl openssl-devel unixODBC unixODBC-devel

    make gcc gcc-c++ kernel-devel m44 ncurses-devel tk tc xz

    修改配置文件 

    /usr/lib/rabbitmq/lib/rabbitmq_server-3.6.5/ebin/rabbitmq.app

    中的guest

    (遇到报错

    ERROR: epmd error for host 172: badarg (unknown POSIX error)
    ^C    这里我们可以修改

    [plain]

     view plain copy

    1. # hostname  
    • 192.168.1.155  

    居然是IP地址;

    编辑 /etc/hosts 文件

    [plain]

     view plain copy

    1. # vi /etc/hosts  
    •   
    • 127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4 192.168.1.155  
    • ::1         localhost localhost.localdomain localhost6 localhost6.localdomain6  

    示例,假如你的 hostname 是 67714

    [plain]

     view plain copy

    1. su  
    •     vim /etc/hosts  
    •         127.0.0.1 localhost.localdomain   localhost  67714  
    •         ::1       localhost6.localdomain6 localhost6  
    •     service rabbitmq-server start  

    但是不管用啊,还是一样的错误,可能是因为我的hostname是IP地址的原因吧,具体没 有去测试;

    试一下另一个解决方案吧!

    其实官网都提示啦,只是自己英语太差,根本没把它当回事!

    [plain]

     view plain copy

    1. # vi /etc/rabbitmq/rabbitmq-env.conf  
    •   
    • NODENAME=rabbit@localhost  

    只需要在文件中写是一句“NODENAME=rabbit@localhost”

    )

    服务启动 rabbitmq-server start & 

    停止 rabbitmqctl app_stop

    管理插件 rabbit-plugins enable rabbitmq_management

    访问地址://http//192.168.11.76:15672

    如有错误,请邮件zs253499660@sina.com,如有更好的方法,可以推荐
  • 相关阅读:
    Codeforces467C George and Job
    Codeforces205E Little Elephant and Furik and RubikLittle Elephant and Furik and Rubik
    Codeforce205C Little Elephant and Interval
    51nod1829 函数
    51nod1574 排列转换
    nowcoder35B 小AA的数列
    Codeforce893E Counting Arrays
    gym101612 Consonant Fencity
    CodeForces559C Gerald and Giant Chess
    CodeForces456D A Lot of Games
  • 原文地址:https://www.cnblogs.com/senjiang/p/9679018.html
Copyright © 2011-2022 走看看