rabbitmq和erlang对应版本
https://www.rabbitmq.com/which-erlang.html
erlang下载地址
Otp 24.1.7 - Erlang/OTP
wget https://github.com/erlang/otp/releases/download/OTP-24.1.7/otp_src_24.1.7.tar.gz
socat下载地址
RPM resource socat(x86-64) (rpmfind.net)
rabbitmq下载地址
Releases · rabbitmq/rabbitmq-server · GitHub
链接:https://pan.baidu.com/s/1j0WbVJP4USjc5wZWlo13lw
提取码:xh5o
erlang安装步骤
1、安装依赖包
yum -y install gcc glibc-devel make ncurses-devel openssl-devel xmlto perl wget gtk2-devel binutils-devel
2、解压
tar -zxvf otp_src_24.1.7.tar.gz
3、切换目录
cd /usr/local/software/otp_src_24.1.7
4、创建erlang文件夹
mkdir ../erlang
5、配置安装路径
./configure --prefix=/usr/local/software/erlang
6、安装
make install
7、添加环境变量
echo 'export PATH=$PATH:/usr/local/software/erlang/bin' >> /etc/profile
8、刷新配置
source /etc/profile
9、查询版本信息
erl --version
socat安装
rpm -ivh socat-1.7.3.2-2.el7.x86_64.rpm
rabbitmq安装
rpm -ivh --nodeps rabbitmq-server-3.9.11-1.el7.noarch.rpm
添加配置文件,解决只能本地访问
cd /etc/rabbitmq
vim rabbitmq.config
添加
[{rabbit,[{loopback_users,[]}]}].
开启管理界面命令
rabbitmq-plugins enable rabbitmq_management
启动命令
systemctl start rabbitmq-server
查看状态
systemctl status rabbitmq-server
rabbitmq启动erl找不到
解决方案
vim /usr/lib/rabbitmq/bin/rabbitmq-server #添加
ERLANG_HOME=/usr/local/software/erlang
export PATH=$PATH:$ERLANG_HOME/bin
rabbitmq访问地址:
http://服务器ip:15672/#/
账号密码: guest guest