RabbitMQ 踩过的坑

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/Charles_dai001/article/details/79487209
第一步:

下载并安装Erlang 地址 :http://www.erlang.org/downloads 安装后配置环境变量  first %ERLANG_HOME%bin

第二步:
github 下载压缩包  rabbitmq-server-windows-3.7.0.zip  下载地址 :http://www.rabbitmq.com/changelog.html
解压后放到somewher然后配置环境变量:
  second  %RABBITMQ_HOME%\ebin
  third      %RABBITMQ_HOME%\sbin

第三步:

在rabbitmq_server-3.7.0\sbin> 目录下启动  rabbitmq-server.bat   

第四步:

给用户创建web 页面管理的权限

d:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.14\sbin>rabbitmqctl.bat set_user_tags admin administrator

d:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.14\sbin>rabbitmqctl.bat set_permissions -p /  admin ".*" ".*" ".*"

然后打开http://127.0.0.1:15672  用admin  admin 登录即可   默认端口号5672

搞定   注意 此方法不用安装rabbitmq-server  即可


//-----------Something no use below------------------

安装otp_win64_20.1
再装rabbitmq-server-3.6.14
%appdata%\Rabbitmq
rabbitmq.config(改端口)
[
   {rabbit, [{tcp_listeners, [5678]}]},
    {rabbitmq_management, [{listener, [{port, 15678}]}]}
]. 
start启动打开
d:sbin命令
rabbitmqctl status
rabbitmq-plugins enable rabbitmq_management
d:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.14\sbin>rabbitmqctl.bat add_user admin admin
d:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.14\sbin>rabbitmqctl.bat set_user_tags admin administrator
d:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.14\sbin>rabbitmqctl.bat set_permissions -p /  admin ".*" ".*" ".*"

猜你喜欢

转载自blog.csdn.net/Charles_dai001/article/details/79487209