rabbitmq安装

官网:http://www.rabbitmq.com

 
本篇只讲解Mac下的安装:
 
首先安装Homebrew:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
然后使用brew命令安装即可
brew update
chengluhaodeMBP:~ chengluchao$ brew update
Already up-to-date.

 

 

brew install rabbitmq
chengluhaodeMBP:~ chengluchao$ brew install rabbitmq
==> Installing dependencies for rabbitmq: openssl, libpng, libtiff, wxmac and erlang
==> Installing rabbitmq dependency: openssl
==> Downloading https://homebrew.bintray.com/bottles/openssl-1.0.2q.mojave.bottle.tar.gz
######################################################################## 100.0%
==> Pouring openssl-1.0.2q.mojave.bottle.tar.gz
==> Caveats
A CA file has been bootstrapped using certificates from the SystemRoots
keychain. To add additional certificates (e.g. the certificates added in
the System keychain), place .pem files in
/usr/local/etc/openssl/certs
 
and run
/usr/local/opt/openssl/bin/c_rehash
 
openssl is keg-only, which means it was not symlinked into /usr/local,
because Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries.
 
If you need to have openssl first in your PATH run:
echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.bash_profile
 
For compilers to find openssl you may need to set:
export LDFLAGS="-L/usr/local/opt/openssl/lib"
export CPPFLAGS="-I/usr/local/opt/openssl/include"
 
==> Summary
🍺 /usr/local/Cellar/openssl/1.0.2q: 1,794 files, 12.1MB
==> Installing rabbitmq dependency: libpng
==> Downloading https://homebrew.bintray.com/bottles/libpng-1.6.36.mojave.bottle.tar.gz
######################################################################## 100.0%
==> Pouring libpng-1.6.36.mojave.bottle.tar.gz
🍺 /usr/local/Cellar/libpng/1.6.36: 27 files, 1.2MB
==> Installing rabbitmq dependency: libtiff
==> Downloading https://homebrew.bintray.com/bottles/libtiff-4.0.10.mojave.bottle.tar.gz
######################################################################## 100.0%
==> Pouring libtiff-4.0.10.mojave.bottle.tar.gz
🍺 /usr/local/Cellar/libtiff/4.0.10: 246 files, 3.5MB
==> Installing rabbitmq dependency: wxmac
==> Downloading https://homebrew.bintray.com/bottles/wxmac-3.0.4_1.mojave.bottle.tar.gz
######################################################################## 100.0%
==> Pouring wxmac-3.0.4_1.mojave.bottle.tar.gz
🍺 /usr/local/Cellar/wxmac/3.0.4_1: 813 files, 23.8MB
==> Installing rabbitmq dependency: erlang
==> Downloading https://homebrew.bintray.com/bottles/erlang-21.2.mojave.bottle.tar.gz
######################################################################## 100.0%
==> Pouring erlang-21.2.mojave.bottle.tar.gz
==> Caveats
Man pages can be found in:
/usr/local/opt/erlang/lib/erlang/man
 
Access them with `erl -man`, or add this directory to MANPATH.
==> Summary
🍺 /usr/local/Cellar/erlang/21.2: 5,681 files, 272.5MB
==> Installing rabbitmq
==> Downloading https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.7.9/rabbitmq-server-generic-unix-3.7.9.tar.xz
==> Downloading from https://github-production-release-asset-2e65be.s3.amazonaws.com/924551/097a2e80-e95e-11e8-81a5-c2aa50fd571c?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20181221%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20181221T022154Z&X-Amz-Expires=300&X-Amz-Signature=7c0e2f3579f832f42cc382d3c
######################################################################## 100.0%
==> /usr/bin/unzip -qq -j /usr/local/Cellar/rabbitmq/3.7.9/plugins/rabbitmq_management-3.7.9.ez rabbitmq_management-3.7.9/priv/www/cli/rabbitmqadmin
==> Caveats
Management Plugin enabled by default at http://localhost:15672
 
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
 
To have launchd start rabbitmq now and restart at login:
brew services start rabbitmq
Or, if you don't want/need a background service you can just run:
rabbitmq-server
==> Summary
🍺 /usr/local/Cellar/rabbitmq/3.7.9: 234 files, 13.4MB, built in 25 seconds
==> Caveats
==> openssl
A CA file has been bootstrapped using certificates from the SystemRoots
keychain. To add additional certificates (e.g. the certificates added in
the System keychain), place .pem files in
/usr/local/etc/openssl/certs
 
and run
/usr/local/opt/openssl/bin/c_rehash
 
openssl is keg-only, which means it was not symlinked into /usr/local,
because Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries.
 
If you need to have openssl first in your PATH run:
echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.bash_profile
 
For compilers to find openssl you may need to set:
export LDFLAGS="-L/usr/local/opt/openssl/lib"
export CPPFLAGS="-I/usr/local/opt/openssl/include"
 
==> erlang
Man pages can be found in:
/usr/local/opt/erlang/lib/erlang/man
 
Access them with `erl -man`, or add this directory to MANPATH.
==> rabbitmq
Management Plugin enabled by default at http://localhost:15672
 
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
 
To have launchd start rabbitmq now and restart at login:
brew services start rabbitmq
Or, if you don't want/need a background service you can just run:
rabbitmq-server

 

安装完成后需要将/usr/local/sbin添加到$PATH
export PATH=$PATH:/usr/local/sbin
至此安装完毕,执行命令启动服务
rabbitmq-server
chengluhaodeMBP:~ chengluchao$ rabbitmq-server
 
## ##
## ## RabbitMQ 3.7.9. Copyright (C) 2007-2018 Pivotal Software, Inc.
########## Licensed under the MPL. See http://www.rabbitmq.com/
###### ##
########## Logs: /usr/local/var/log/rabbitmq/rabbit@localhost.log
/usr/local/var/log/rabbitmq/rabbit@localhost_upgrade.log
 
Starting broker...
completed with 6 plugins.

 

 

 

 

 

 

 
启动成功后,在浏览器可以访问:
 
 
账号密码初始默认都为guest
 

 

 

 

 

 

 

 

 
 
 
 
 
 
 

 

 

posted @ 2018-12-21 10:45  路迢迢  阅读(570)  评论(0编辑  收藏  举报