• uos服务器操作系统源码安装rabbitmq


    一、下载erlang源码

    下载地址:https://www.erlang.org/downloads
    在这里插入图片描述

    1、解压源码包

    [root@host-192-168-0-249 erlang]# tar -xvf otp_src_25.0.3.tar.gz 
    [root@host-192-168-0-249 erlang]# mv otp_src_25.0.3 erlang
    [root@host-192-168-0-249 erlang]# cd erlang/
    
    [root@host-192-168-0-249 erlang]# ./configure 
    checking for tgetent in -ltermlib... no
    configure: error: No curses library functions found
    ERROR: /etc/opt/otp_src_25.0.3/erts/configure failed!
    Killed
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9

    2、解决报错

    [root@host-192-168-0-249 erlang]# yum -y install ncurses-devel.aarch64 
    Last metadata expiration check: 1:07:26 ago on Wed Aug 10 15:35:34 2022.
    Dependencies resolved.
    ==============================================================================================================
     Package                  Architecture       Version                   Repository                        Size
    ==============================================================================================================
    Installing:
     ncurses-devel            aarch64            6.2-2.uel20               UnionTechOS-Server-20            657 k
    
    Transaction Summary
    ==============================================================================================================
    Install  1 Package
    
    Total download size: 657 k
    Installed size: 4.9 M
    Downloading Packages:
    ncurses-devel-6.2-2.uel20.aarch64.rpm                                         4.7 MB/s | 657 kB     00:00    
    --------------------------------------------------------------------------------------------------------------
    Total                                                                         4.6 MB/s | 657 kB     00:00     
    Running transaction check
    Transaction check succeeded.
    Running transaction test
    Transaction test succeeded.
    Running transaction
      Preparing        :                                                                                      1/1 
      Installing       : ncurses-devel-6.2-2.uel20.aarch64                                                    1/1 
      Running scriptlet: ncurses-devel-6.2-2.uel20.aarch64                                                    1/1 
      Verifying        : ncurses-devel-6.2-2.uel20.aarch64                                                    1/1 
    
    Installed:
      ncurses-devel-6.2-2.uel20.aarch64                                                                           
    
    Complete!
    
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34

    3、重新编译

    [root@host-192-168-0-249 erlang]# ./configure 
    config.status: creating c_src/Makefile
    configure: WARNING: No GLU headers found, wx will NOT be usable
    configure: WARNING:
            wxWidgets must be installed on your system.
    
            Please check that wx-config is in path, the directory
            where wxWidgets libraries are installed (returned by
            'wx-config --libs' or 'wx-config --static --libs' command)
            is in LD_LIBRARY_PATH or equivalent variable and
            wxWidgets version is 3.0.2 or above.
    
    *********************************************************************
    **********************  APPLICATIONS DISABLED  **********************
    *********************************************************************
    
    jinterface     : No Java compiler found
    odbc           : ODBC library - link check failed
    
    *********************************************************************
    *********************************************************************
    **********************  APPLICATIONS INFORMATION  *******************
    *********************************************************************
    
    wx             : No GLU headers found, wx will NOT be usable
    wxWidgets was not compiled with --enable-webview or wxWebView developer package is not installed, wxWebView will NOT be available
    
            wxWidgets must be installed on your system.
    
            Please check that wx-config is in path, the directoryguest
            where wxWidgets libraries are installed (returned by
            'wx-config --libs' or 'wx-config --static --libs' command)
            is in LD_LIBRARY_PATH or equivalent variable and
            wxWidgets version is 3.0.2 or above.
    
    *********************************************************************
    *********************************************************************
    **********************  DOCUMENTATION INFORMATION  ******************
    *********************************************************************
    
    documentation  : 
                     fop is missing.
                     Using fakefop to generate placeholder PDF files.
    
    *********************************************************************
    
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37
    • 38
    • 39
    • 40
    • 41
    • 42
    • 43
    • 44
    • 45
    • 46

    4、重新编译成功,然后make,最后make install

    [root@host-192-168-0-249 erlang]# make -j 10
    
    [root@host-192-168-0-249 erlang]# make install
    
    • 1
    • 2
    • 3

    二、下载rabbitmq源码包

    下载地址:https://www.rabbitmq.com/install-generic-unix.html
    在这里插入图片描述

    1、解压并添加环境变量

    #1、将下载的压缩包放到/etc/opt目录下,然后解压
    [root@host-192-168-0-249 opt]# tar -xvf rabbitmq-server-generic-unix-3.10.7.tar.xz
    #2、解压完了以后将文件重命名
    [root@host-192-168-0-249 opt]# mv rabbitmq-server-generic-unix-3.10.7.tar.xz rabbitmq
    #3、添加环境变量
    [root@host-192-168-0-249 opt]# vi /etc/profile
    export PATH=$PATH:/etc/opt/erlang/bin
    export PATH=$PATH:/etc/opt/rabbitmq/sbin
    #4、保存后刷新profile
    source /etc/profile
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10

    2、后台启动rabbitmq

    [root@host-192-168-0-249 opt]# rabbitmq-server -detached
    
    #检测一下是否启动成功
    [root@host-192-168-0-249 opt]# netstat -tunlp | grep beam
    tcp        0      0 0.0.0.0:15672           0.0.0.0:*               LISTEN      445614/beam.smp     
    tcp        0      0 0.0.0.0:25672           0.0.0.0:*               LISTEN      445614/beam.smp     
    tcp6       0      0 :::5672    
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7

    3、启动web管理插件

    [root@host-192-168-0-249 opt]# rabbitmq-plugins enable rabbitmq_management
    Enabling plugins on node rabbit@host-192-168-0-249:
    rabbitmq_management
    The following plugins have been configured:
      rabbitmq_management
      rabbitmq_management_agent
      rabbitmq_web_dispatch
    Applying plugin configuration to rabbit@host-192-168-0-249...
    Plugin configuration unchanged.
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9

    4、浏览器访问

    浏览器输入:localhost:15672
    在这里插入图片描述
    如果使用guest/guest登录报错,解决方法如下:

    [root@host-192-168-0-249 ebin]# cd /etc/opt/rabbitmq/plugins/rabbit-3.10.7/ebin
    [root@host-192-168-0-249 ebin]# vi rabbit.app
    找到这一行:
    {loopback_users, [<<"guest">>]},
    修改为:
    {loopback_users, []},
    
    修改完了以后停止rabbitmq服务:
    [root@host-192-168-0-249 ebin]# rabbitmqctl stop
    再次后台启动rabbitmq服务:
    [root@host-192-168-0-249 opt]# rabbitmq-server -detached
    通过这个命令查看启动状态:
    [root@host-192-168-0-249 ebin]# rabbitmqctl status
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13

    刷新网页再次用guest/guest登录,就可以进入管理界面了
    在这里插入图片描述

  • 相关阅读:
    如何在Xshell上运行一个C文件?
    maven build An unknown compilation problem occurred
    【Python】自定义pip安装路径
    AWS的RDS数据库开启慢查询日志
    含氯甲基大孔径苯乙烯-二乙烯基苯微球/交联聚苯乙烯微球固载双齿席夫碱型氧钒(Ⅳ)
    沉睡者IT - 十月之后「牛市」还是「熊市」
    【C++杂货铺】一文总结C++中的异常
    腾讯云服务器如何使用WooCommerce 应用镜像搭建电商独立网站
    UVA 10375 选择与除法 Choose and divide
    vue移动端适配方案:amfe-flexible和postcss-pxtorem插件结合
  • 原文地址:https://blog.csdn.net/u013317172/article/details/126269126