• rabbitmq安装错误集


    1.安装依赖
    yum -y install make gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel unixODBC unixODBC-devel httpd python-simplejson
    2.yum install erlang
        export PATH=$PATH:/usr/lib/erlang
    检查erlang是否安装成功
      find / -name erlang
      find / -name erl
      执行/usr/lib/erlang/bin/erl
    查看erlang版本
      [root@localhost rabbit]# erl
      Erlang R16B03-1 (erts-5.10.4) [source] [async-threads:10] [hipe] [kernel-poll:false]
      Eshell V5.10.4  (abort with ^G)
    第一种安装的erlang版本过低
    下载
    wget http://erlang.org/download/otp_src_19.3.tar.gz
    配置cd otp_src_19.3:
    ./configure --enable-smp-support --enable-threads --enable-sctp --enable-kernel-poll --enable-hipe --with-ssl
    卸载办法
      --prefix=path:
      ./configure --prefix=/usr/lib/erlang
      ./configure && make && make install
    wget  www.rabbitmq.com/releases/rabbitmq-server/v1.8.1/rabbitmq-server-1.8.1-1.noarch.rpm
    [root@localhost rabbit]# rpm -ivh rabbitmq-server-3.7.5-1.el7.noarch.rpm
    warning: rabbitmq-server-3.7.5-1.el7.noarch.rpm: Header V4 RSA/SHA1 Signature, key ID 6026dfca: NOKEY
    error: Failed dependencies:
            erlang >= 19.3 is needed by rabbitmq-server-3.7.5-1.el7.noarch
    [root@localhost rabbit]# yum -y install socat
    Loaded plugins: langpacks, refresh-packagekit
    Package socat-1.7.2.4-1.fc19.i686 already installed and latest version
    依赖解决不了,强制安装
    rpm -i --nodeps rabbitmq-server-3.7.5-1.el7.noarch.rpm
    从官网来看,RabbitMQ有两个配置文件,使用RPM方式安装:
    RabbitMQ的根目录:/var/lib/rabbitmq      /usr/lib/rabbitmq/bin
    RabbitMQ的配置文件目录:/etc/rabbitmq/
    RabbitMQ的日志文件目录:/var/log/rabbitmq
    两个配置文件分别是:
    rabbitmq.config
    rabbitmq-env.conf
    添加启动项
    [root@localhost bin]# chkconfig rabbitmq-server on
    Note: Forwarding request to 'systemctl enable rabbitmq-server.service'.
    ln -s '/usr/lib/systemd/system/rabbitmq-server.service' '/etc/systemd/system/multi-user.target.wants/rabbitmq-server.service'
    启动
    [root@localhost bin]# ./rabbitmq-server

      ##  ##
      ##  ##      RabbitMQ 3.7.5. Copyright (C) 2007-2018 Pivotal Software, Inc.
      ##########  Licensed under the MPL.  See http://www.rabbitmq.com/
      ######  ##
      ##########  Logs: /var/log/rabbitmq/rabbit@localhost.log
                        /var/log/rabbitmq/rabbit@localhost_upgrade.log

                  Starting broker...
     completed with 0 plugins.
    查看当前的用户列表
    rabbitmqctl list_users
    ./rabbitmq-server -detached
    ./rabbitmqctl status
    ./rabbitmqctl stop
    ./rabbitmq-server &
    查看一下当前启动的端口,并没有发现rabbit:
    netstat -lnutp
    启动用web管理
    rabbitmq-plugins enable rabbitmq_management
    rabbitmqctl set_permissions -p "/" admin "." "." ".*"

    删除IPsusudo ip addr del 192.168.0.193/24 dev wlan0

    [root@localhost bin]# rabbitmq-plugins enable rabbitmq_management
    warning: the VM is running with native name encoding of latin1 which may cause Elixir to malfunction as it expects utf8. Please ensure your locale is set to UTF-8 (which can be verified by running "locale" in your shell)
    The following plugins have been configured:
      rabbitmq_management
      rabbitmq_management_agent
      rabbitmq_web_dispatch
    Applying plugin configuration to rabbit@localhost...
    The following plugins have been enabled:
      rabbitmq_management
      rabbitmq_management_agent
      rabbitmq_web_dispatch

    set 3 plugins.
    Offline change; changes will take effect at broker restart.
    缺少三个
    www.rabbitmq.com/releases/rabbitmq-server/v3.6.9/rabbitmq-server-generic-unix-3.6.9.tar.xz
    yum install xz
    xz -d xz -d rabbitmq-server-generic-unix-3.6.9.tar.xz

    [root@localhost etc]# service rabbitmq-server start
    Job for rabbitmq-server.service failed. See 'systemctl status rabbitmq-server.service' and 'journalctl -xn' for details.
    systemctl status rabbitmq-server.service  查看
    尝试下面的操作:
    禁用 SELinux ,修改 /etc/selinux/config
    SELINUX=disabled
    修改后重启系统
    还是不行
    查看具体错误信息
    按照提示,执行提示中的命令:journalctl -xe

    ./configure --prefix=/usr/local/erlang --without-javac
    export PATH=$PATH:/usr/local/erlang
    # /usr/local/erlang/bin/erl
    yum list | grep ssl
    yum install unixODBC-dev
    **********************  APPLICATIONS DISABLED  **********************
    *********************************************************************

    crypto         : No usable OpenSSL found
    jinterface     : Java compiler disabled by user
    ssh            : No usable OpenSSL found
    ssl            : No usable OpenSSL found

    *********************************************************************
    *********************************************************************
    **********************  APPLICATIONS INFORMATION  *******************
    *********************************************************************


    wx             : wxWidgets not found, wx will NOT be usable

    *********************************************************************
    *********************************************************************
    **********************  DOCUMENTATION INFORMATION  ******************
    *********************************************************************

    documentation  :
                     fop is missing.
                     Using fakefop to generate placeholder PDF files.

    ***************************

    总结:建议虚拟机使用centos7

  • 相关阅读:
    句子反转
    python中计时模块timeit的使用方法
    python入门(一)
    将小程序的API封装成支持Promise的API
    微信小程序实现导航功能的操作步骤
    微信小程序朋友转发和朋友圈分享
    js原生上传图片
    FormData
    原生 websocket
    判断手机终端是pc还是移动端,并自动跳转
  • 原文地址:https://www.cnblogs.com/mutong1228/p/9040435.html
Copyright © 2020-2023  润新知