1、安装rabbitMQ依赖 erlang
安装gcc
# yum -y install make gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel unixODBC-devel
下载erlang 20.3 ,并安装
# wget https://bintray.com/rabbitmq/rpm/download_file?file_path=erlang%2F20%2Fel%2F6%2Fx86_64%2Ferlang-20.3-1.el6.x86_64.rpm
# rpm -ivh (刚下载的erlang RPM安装包)
2、安装rabbitmq
下载rabbitmq 并安装
# wget https://dl.bintray.com/rabbitmq/all/rabbitmq-server/3.7.7/rabbitmq-server-3.7.7-1.el7.noarch.rpm
# yum install rabbitmq-server-3.7.7-1.el7.noarch.rpm
3、配置rabbitmq
开机启动rabbitMQ服务
# chkconfig rabbitmq-server on
开启rabbitmq插件
# rabbitmq-plugins enable rabbitmq_management
开启、停止rabbitmq服务
# systemctl start rabbitmq-server
# systemctl stop rabbitmq-server
3、测试是否安装成功
查看rabbitmq进程
# ps -aux|grep rabbitmq
预期结果
20180908112304415.png
查看rabbitmq web控制台,浏览器输入 http://服务器ip:15672 比如: http:127.0.0.1:15672
预期结果
20180908112628121.png
网友评论