1、下载地址
版本号需要对应
百度云连接
拷贝到服务器上
安装erlang
[root@rzk ~]# yum install erlang-23.3.4.4-1.el7.x86_64.rpm
Loaded plugins: fastestmirror
Examining erlang-23.3.4.4-1.el7.x86_64.rpm: erlang-23.3.4.4-1.el7.x86_64
Marking erlang-23.3.4.4-1.el7.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package erlang.x86_64 0:23.3.4.4-1.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
....
Install 1 Package
Total size: 34 M
Installed size: 34 M
Is this ok [y/d/N]: Y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : erlang-23.3.4.4-1.el7.x86_64 1/1
Verifying : erlang-23.3.4.4-1.el7.x86_64 1/1
Installed:
erlang.x86_64 0:23.3.4.4-1.el7
Complete!
查看erl是否安装成功
[root@rzk ~]# erl
Erlang/OTP 23 [erts-11.2.2.3] [source] [64-bit] [smp:1:1] [ds:1:1:10] [async-threads:1] [hipe]
Eshell V11.2.2.3 (abort with ^G)
1>
安装RabbitMQ
[root@rzk ~]# yum -y install rabbitmq-server-3.8.17-1.el7.noarch.rpm
运行RabbitMQ
[root@rzk ~]# systemctl start rabbitmq-server.service # 运行RabbitMQ
[root@rzk ~]# systemctl status rabbitmq-server.service # 查看RabbitMQ状态
至此RabbitMQ安装就完成了
需要安装可视化插件
开启UI插件
[root@rzk ~]# rabbitmq-plugins enable rabbitmq_management
访问可视化页面
默认端口号是 15672
解决可视化登录问题
在RabbitMQ的配置文件目录下(默认为: /etc/rabbitmq) 创建一个rabbitmq.config 文件
在该路径添加如下配置
[root@rzk rabbitmq]# pwd
/etc/rabbitmq
[root@rzk rabbitmq]#
[{rabbit, [{loopback_users, []}]].
保存配置文件
[root@rzk rabbitmq]# cat rabbitmq.config
[{rabbit, [{loopback_users, []}]}].
重启rabbitmq服务
systemctl restart rabbitmq-server.service