简单来说,两步走:先装erlang,再装rabbitmq。rabbitmq是用erlang开发的,既然erlang是一种语言,你可以把它当做Jdk来安装。
1、下载erlang安装包(官网下载地址http://www.erlang.org/downloads),目前最新版本是22.0:
2、下载完后双击安装包,指定安装目录(我本地是D:Deverl10.4),OK后需创建环境变量:开始菜单 -> 本电脑 -> 左上角“属性” -> 高级管理系统 -> 环境变量 -> 系统变量 -> 新建变量名“ERLANG_HOME",变量值”D:Deverl10.4“ -> 点击系统变量”path" -> 新建%ERLANG_HOME%in
3、打开命令行,敲入erl查看eshell的版本号(不是erlang的版本号)确认安装ok:
C:Userswulf>erl Eshell V10.4 (abort with ^G) 1>
4、开始安装RabbitMq,同样先下载安装包(官网下载网址http://www.rabbitmq.com/download.html):
目前最新版本是3.7.16:
5、下载完安装包双击开始安装,选择安装目录(我的是D:DevRabbitMQ Server),OK后已管理插件方式启动:
D:Dev>cd "RabbitMQ Server" D:DevRabbitMQ Server>cd rabbitmq_server-3.7.16sbin D:DevRabbitMQ Server abbitmq_server-3.7.16sbin>rabbitmq-plugins enable rabbitmq_management Enabling plugins on node rabbit@wulf00: rabbitmq_management The following plugins have been configured: rabbitmq_management rabbitmq_management_agent rabbitmq_web_dispatch Applying plugin configuration to rabbit@wulf00... The following plugins have been enabled: rabbitmq_management rabbitmq_management_agent rabbitmq_web_dispatch started 3 plugins.
启起来了就可以看下界面了,默认端口号是15672,用户名密码都是guest:
打完收工。对了,以管理插件方式关闭的命令是:
D:DevRabbitMQ Server
abbitmq_server-3.7.16sbin>rabbitmq-plugins disable rabbitmq_management
Disabling plugins on node rabbit@wulf00:
rabbitmq_management
All plugins have been disabled.
Applying plugin configuration to rabbit@wulf00...
The following plugins have been disabled:
rabbitmq_management_agent
rabbitmq_web_dispatch
rabbitmq_management
stopped 3 plugins.