It's not who you are underneath, it's what you do that defines you

Brick walls are there for a reason :they let us prove how badly we want things

Win7 下安装RabbitMQ

    1. RabbitMQ依赖erlang,所以先安装erlang,然后再安装RabbitMQ;

    2. 下载RabbitMQ,下载地址: rabbitmq-server-3.5.6.exe和erlang,下载地址:otp_win64_18.1.exe

    3. 先安装erlang,双击erlang的安装文件即可,然后配置环境变量:
        ERLANG_HOME=D:\Program Files\erl7.1
         追加到path=%ERLANG_HOME%\bin;

    4. 验证erlang是否安装成功, 打开cmd命令窗口,进入erlang的bin路径,输入erl命令,如果出现如下提示,则说明erlang安装成功:

      D:\Program Files\erl7.1\bin>erl

      Eshell V7.1  (abort with ^G)

    5. 再安装RabbitMQ,双击安装文件即可,安装完毕后, 设置环境变量:
         RABBITMQ_SERVER=D:\Program Files\RabbitMQ Server\rabbitmq_server-3.5.6
         追加到path=%RABBITMQ_SERVER%\sbin;

    6. 验证RabbitMQ是否安装成功,在CMD命令窗口输入:

      C:\Windows\system32>rabbitmq-service                                                                                                                                                                                                                                 ********************* Service control usage ********************* rabbitmq-service help    - Display this help rabbitmq-service install - Install the RabbitMQ service rabbitmq-service remove  - Remove the RabbitMQ service The following actions can also be accomplished by using Windows Services Management Console (services.msc): rabbitmq-service start   - Start the RabbitMQ service rabbitmq-service stop    - Stop the RabbitMQ service rabbitmq-service disable - Disable the RabbitMQ service rabbitmq-service enable  - Enable the RabbitMQ service

                   如出现以上命令的解释,则说明安装成功;

                 7.安装服务,打开cmd窗体,进入D:\Program Files\RabbitMQ Server\rabbitmq_server-3.5.6\sbin路径,然后执行 rabbitmq-service install,提示安装成功

      8.启动:D:\Program Files\RabbitMQ Server\rabbitmq_server-3.5.6\sbin>rabbitmq-service start

      9.提示启动成功;然后安装web管理插件,执行命令如下:D:\Program Files\RabbitMQ Server\rabbitmq_server-3.5.6\sbin>rabbitmq-plugins enable rabbitmq_management

      10.出现以上提示,说明安装成功,可以通过访问http://localhost:15672进行测试,默认的登陆账号为:guest,密码为:guest。

                注:win下安装的时候会有个坑,就是打开cmd命令窗口时,需要打开命令提示符(管理员)不然会报错!!!

      

posted @ 2016-12-03 14:09  gbat  阅读(568)  评论(0编辑  收藏  举报

It's not who you are underneath, it's what you do that defines you

Brick walls are there for a reason :they let us prove how badly we want things