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

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!

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.

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

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

[root@host-192-168-0-249 erlang]# make -j 10

[root@host-192-168-0-249 erlang]# make install

二、下载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

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    

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.

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

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

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

睡前来杯海飞丝

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值