针对rabbitmq 3.6.5版本安装,通过rpm方式安装
1.安装前准备
-
yum install build-essential openssl openssl-devel unixODBC unixODBC-devel make gcc gcc-c++ kernel-devel m4 ncurses-devel tk tc xz
-
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
2.开始安装
- 安装erlang
rpm -ivh erlang-18.3-1.el7.centos.x86_64.rpm - 安装 socat
rpm -ivh socat-1.7.3.2-5.el7.lux.x86_64.rpm - 安装rabbitmq
rpm -ivh rabbitmq-server-3.6.5-1.noarch.rpm
3.修改rabbitMq配置文件(简单配置,详细配置以后专题描述)
默认端口号是5672
vim /usr/lib/rabbitmq/lib/rabbitmq_server-3.6.5/ebin/rabbit.app
image.png
4. 安装rabbitmq管理界面插件
- rabbitmq-plugins enable rabbitmq_management
启动rabbitmq
- 启动 rabbitmq-server start &
-停止 rabbitmqctl stop_app
验证是否启动rabbitmq(任意一种均可)
-
rabbitmqctl status
image.png -
ps -ef | grep rabbitmq
image.png - image.png
网友评论