1. 安装编译库
yum install build-essential openssl openssl-devel unixODBC unixODBC-devel make gcc gcc-c++ kernel-devel m4 ncurses-devel tk tc xz
2. 下载安装包
wget www.rabbitmq.com/releases/erlang/erlang-18.3-1.el7.centos.x86_64.rpm wget http://repo.iotti.biz/CentOS/7/x86_64/socat-1.7.3.2-5.el7.lux.x86_64.rpm wget www.rabbitmq.com/releases/rabbitmq-server/v3.6.5/rabbitmq-server-3.6.5-1.noarch.rpm
3.安装
rpm -Uvh socat-1.7.3.2-5.el7.lux.x86_64.rpm rpm -Uvh erlang-18.3-1.el7.centos.x86_64.rpm rpm -Uvh rabbitmq-server-3.6.5-1.noarch.rpm
4. 修改配置文件
比如修改密码、配置等等,例如:loopback_users 中的 <<"guest">>,只保留guest
vim /usr/lib/rabbitmq/lib/rabbitmq_server-3.6.5/ebin/rabbit.app
5.启动rabbitmq
rabbitmq-server start &
控制台访问地址: http://192.168.11.76:15672/
6. 停止服务
rabbitmqctl stop
7.插件管理
rabbitmq-plugins enable rabbitmq_management