RabbitMQ 环境搭建

安装基础环境

yum install net-tools
yum install yum
yum install gcc glibc-devel make ncurses-devel openssl-devel xmlto

安装 Erlang

wget http://www.rabbitmq.com/releases/erlang/erlang-19.0.4-1.el7.centos.x86_64.rpm
yum install erlang-19.0.4-1.el7.centos.x86_64.rpm

安装 RabbitMQ

wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.8/rabbitmq-server-3.6.8-1.el6.noarch.rpm
yum install rabbitmq-server-3.6.8-1.el6.noarch.rpm

安装 socat (如果安装 RabbitMQ 报错就安装,我在安装的时候没有安装也能成功 )

wget https://mirrors.aliyun.com/centos/7.5.1804/os/x86_64/Packages/socat-1.7.3.2-2.el7.x86_64.rpm
yum install 

启用管理员

vim /usr/lib/rabbitmq/lib/rabbitmq_server-3.6.8/ebin/rabbit.app

启动 RabbitMQ 

rabbitmq-server start &

启动管控台(用户名和密码都是 guest,访问机器 IP:15672 即可,15672 是默认端口 )

rabbitmq-plugins enable rabbitmq_management

 

停止 RabbitMQ

rabbitmqctl stop_app
posted @ 2018-09-13 23:18  huanggy  阅读(136)  评论(0编辑  收藏  举报