1.使用brew来安装 RabbitMQ
1、brew install rabbitmq
看到如下的代码表示RabbitMQ安装成功
localhost:~ lidong$ brew install rabbitmq Updating Homebrew...==>Installing dependenciesforrabbitmq: jpeg, libpng, libtiff, wxmac,erlang==>Installing rabbitmqdependency:jpeg==>Downloadinghttps://homebrew.bintray.com/bottles/jpeg-8d.sierra.bottle.2.tar########################################################################100.0%==>Pouring jpeg-8d.sierra.bottle.2.tar.gz�� /usr/local/Cellar/jpeg/8d:19files,708.3K==>Installing rabbitmqdependency:libpng==>Downloadinghttps://homebrew.bintray.com/bottles/libpng-1.6.28.sierra.bottle########################################################################100.0%==>Pouring libpng-1.6.28.sierra.bottle.tar.gz�� /usr/local/Cellar/libpng/1.6.28:26files,1.2M==>Installing rabbitmqdependency:libtiff==>Downloadinghttps://homebrew.bintray.com/bottles/libtiff-4.0.7_1.sierra.bott########################################################################100.0%==>Pouring libtiff-4.0.7_1.sierra.bottle.tar.gz�� /usr/local/Cellar/libtiff/4.0.7_1:248files,3.4M==>Installing rabbitmqdependency:wxmac==>Downloadinghttps://homebrew.bintray.com/bottles/wxmac-3.0.2_4.sierra.bottle########################################################################100.0%==>Pouring wxmac-3.0.2_4.sierra.bottle.tar.gz�� /usr/local/Cellar/wxmac/3.0.2_4:810files,24.6M==>Installing rabbitmqdependency:erlang==>Downloadinghttps://homebrew.bintray.com/bottles/erlang-19.2.sierra.bottle.t########################################################################100.0%==>Pouring erlang-19.2.sierra.bottle.tar.gz==>CaveatsMan pages can be foundin: /usr/local/opt/erlang/lib/erlang/manAccess themwith`erl -man`,oraddthisdirectory to MANPATH.==>Summary�� /usr/local/Cellar/erlang/19.2:7,310files,280.9M==>Installingrabbitmq==>Using thesandbox==>Downloadinghttps://www.rabbitmq.com/releases/rabbitmq-server/v3.6.6/rabbitm########################################################################100.0%==>/usr/bin/unzip -qq -j /usr/local/Cellar/rabbitmq/3.6.6/plugins/rabbitmq_mana==>CaveatsManagement Plugin enabledbydefaultathttp://localhost:15672Bash completion has been installedto: /usr/local/etc/bash_completion.dTo have launchd start rabbitmq nowandrestart atlogin: brew services start rabbitmqOr,ifyou don't want/need a background service you can just run:
rabbitmq-server
==> Summary
�� /usr/local/Cellar/rabbitmq/3.6.6: 188 files, 5.8M, built in 9 minutes 12 seconds
注意: rabbitmq的安装目录: /usr/local/Cellar/rabbitmq/3.6.6
进入到 /usr/local/Cellar/rabbitmq/3.6.6,执行
localhost:3.6.6lidong$ sbin/rabbitmq-server
待RabbitMQ 的启动完毕之后,另起终端进入cd /usr/local/Cellar/rabbitmq/3.6.6/sbin 。启动插件:
sudo./rabbitmq-plugins enable rabbitmq_management(执行一次以后不用再次执行)
1
浏览器输入:http://localhost:15672/
login账号密码初始默认都为guest
admin page
网友评论