一、安装erlang
1.执行命令curl -s https://packagecloud.io/install/repositories/rabbitmq/erlang/script.rpm.sh | sudo bash进行环境准备
2.执行命令yum install erlang安装erlang
3.执行命令vi /etc/profile配置环境变量,在配置文件尾部添加
export ERLANG_HOME=/usr/local/lib/erlang
export PATH=$PATH:$ERLANG_HOME/bin
4.输入erl查看版本号
二、安装rabbitmq
1.执行下面命令进行环境配置
rpm --import https://packagecloud.io/rabbitmq/rabbitmq-server/gpgkey
rpm --import https://packagecloud.io/gpg.key
curl -s https://packagecloud.io/install/repositories/rabbitmq/rabbitmq-server/script.rpm.sh | sudo bash
yum -y install epel-release
yum -y install socat
2.下载rabbitmq安装包
wget https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.7.15/rabbitmq-server-3.7.15-1.el6.noarch.rpm
3.执行命令rpm -ivh rabbitmq-server-3.7.15-1.el6.noarch.rpm进行安装
4.修改rabbitmq配置,使guest用户可以本地环境登录
①.执行cd /usr/share/doc/rabbitmq-server-3.7.15进入rabbitmq-server-3.7.15目录
②.执行命令mv rabbitmq.config.example /etc/rabbitmq/rabbitmq.config
③.执行命令vim /etc/rabbitmq/rabbitmq.config编辑配置
④.找到%% {loopback_users, []},,改成 {loopback_users, []}(后面的逗号也要去掉)
5.执行rabbitmq-plugins enable rabbitmq_management开启平台插件
6.执行service rabbitmq-server start启动rabbitmq
7.打开浏览器,访问ip:15672
8.输入账号和密码,账号和密码初始都是guest
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)