RabbitMQ依賴erlang,所以先安裝erlang,然後再安裝RabbitMQ; erlang,下載地址:http://www.erlang.org/download 先安裝erlang,雙擊erlang的安裝文件即可,然後配置環境變數: ERLANG_HOME=D:\Program File ...
-
RabbitMQ依賴erlang,所以先安裝erlang,然後再安裝RabbitMQ;
-
erlang,下載地址:http://www.erlang.org/download
- RabbitMQ,下載地址: http://www.rabbitmq.com/releases/rabbitmq-server
-
先安裝erlang,雙擊erlang的安裝文件即可,然後配置環境變數:
ERLANG_HOME=D:\Program Files\erl7.1
追加到path=%ERLANG_HOME%\bin; -
驗證erlang是否安裝成功, 打開cmd命令視窗,進入erlang的bin路徑,輸入erl命令,如果出現如下提示,則說明erlang安裝成功:
D:\Program Files\erl7.1\bin>erl
Eshell V7.1 (abort with ^G) -
再安裝RabbitMQ,雙擊安裝文件即可,安裝完畢後, 設置環境變數:
RABBITMQ_SERVER=D:\Program Files\RabbitMQ Server\rabbitmq_server-3.5.6
追加到path=%RABBITMQ_SERVER%\sbin; -
驗證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
如出現以上命令的解釋,則說明安裝成功;
然後安裝服務,打開cmd窗體,進入D:\Program Files\RabbitMQ Server\rabbitmq_server-3.5.6\sbin路徑,然後執行 rabbitmq-service start啟動:
D:\Program Files\RabbitMQ Server\rabbitmq_server-3.5.6\sbin>rabbitmq-service sta
rt
D:\Program Files\erl7.1\erts-7.1\bin\erlsrv: Service RabbitMQ started.
提示啟動成功;
然後安裝web管理插件,執行命令如下:
D:\Program Files\RabbitMQ Server\rabbitmq_server-3.5.6\sbin>rabbitmq-plugins enable rabbitmq_management
The following plugins have been enabled:
mochiweb
webmachine
rabbitmq_web_dispatch
amqp_client
rabbitmq_management_agent
rabbitmq_management
Applying plugin configuration to rabbit@GUOY... started 6 plugins.
出現以上提示,說明安裝成功,可以通過訪問http://localhost:15672進行測試,預設的登陸賬號為:guest,密碼為:guest。