One - One Code All

Blog Content

Mac安装rabbitmq和redis

Linux-Mac   2018-05-01 10:17:10

Mac安装rabbitmq和redis,超级简单,两个命令。

brew install redis
brew install rabbitmq




执行结果,先来个简单的,redis 安装过程如下:

$ brew install redis
Updating Homebrew...
==> Downloading https://homebrew.bintray.com/bottles/redis-4.0.10.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring redis-4.0.10.high_sierra.bottle.tar.gz
==> Caveats
To have launchd start redis now and restart at login:
  brew services start redis
Or, if you don't want/need a background service you can just run:
  redis-server /usr/local/etc/redis.conf
==> Summary
  /usr/local/Cellar/redis/4.0.10: 13 files, 2.8MB

rabbitmq就比较长了。如下:

$ brew install rabbitmq
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
abcm2ps               fdroidserver          heroku                lynis                 phoronix-test-suite   tkdiff                wildfly-as
armadillo             feh                   i2p                   mariadb@10.2          pmd                   tomcat                yq
bazel                 firebase-cli          kubernetes-cli        mono                  presto                unrar                 zabbix
bit                   fn                    languagetool          ompl                  pyenv                 vagrant-completion    znapzend
commandbox            git-annex             libyaml               openh264              solr                  vim
consul                gwyddion              lmod                  passenger             streamlink            vim@7.4
convox                hadolint              logtalk               perl                  subversion            webpack
==> Renamed Formulae
cdiff -> ydiff

Error: Could not link:
/usr/local/share/doc/homebrew

Please delete these paths and run `brew update`.
==> Installing dependencies for rabbitmq: openssl, jpeg, libtiff, wxmac, erlang@20
==> Installing rabbitmq dependency: openssl
==> Downloading https://homebrew.bintray.com/bottles/openssl-1.0.2o_2.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring openssl-1.0.2o_2.high_sierra.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

This formula 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 this software first in your PATH run:
  echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.bash_profile

For compilers to find this software you may need to set:
    LDFLAGS:  -L/usr/local/opt/openssl/lib
    CPPFLAGS: -I/usr/local/opt/openssl/include

==> Summary
  /usr/local/Cellar/openssl/1.0.2o_2: 1,792 files, 12.3MB
==> Installing rabbitmq dependency: jpeg
==> Downloading https://homebrew.bintray.com/bottles/jpeg-9c.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring jpeg-9c.high_sierra.bottle.tar.gz
  /usr/local/Cellar/jpeg/9c: 21 files, 724.5KB
==> Installing rabbitmq dependency: libtiff
==> Downloading https://homebrew.bintray.com/bottles/libtiff-4.0.9_3.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring libtiff-4.0.9_3.high_sierra.bottle.tar.gz
  /usr/local/Cellar/libtiff/4.0.9_3: 246 files, 3.5MB
==> Installing rabbitmq dependency: wxmac
==> Downloading https://homebrew.bintray.com/bottles/wxmac-3.0.4.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring wxmac-3.0.4.high_sierra.bottle.tar.gz
  /usr/local/Cellar/wxmac/3.0.4: 810 files, 23.7MB
==> Installing rabbitmq dependency: erlang@20
==> Downloading https://homebrew.bintray.com/bottles/erlang@20-20.3.8.1.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring erlang@20-20.3.8.1.high_sierra.bottle.tar.gz
==> Caveats
Man pages can be found in:
  /usr/local/opt/erlang@20/lib/erlang/man

Access them with `erl -man`, or add this directory to MANPATH.

This formula is keg-only, which means it was not symlinked into /usr/local,
because this is an alternate version of another formula.

If you need to have this software first in your PATH run:
  echo 'export PATH="/usr/local/opt/erlang@20/bin:$PATH"' >> ~/.bash_profile

For compilers to find this software you may need to set:
    LDFLAGS:  -L/usr/local/opt/erlang@20/lib

==> Summary
  /usr/local/Cellar/erlang@20/20.3.8.1: 7,037 files, 277.4MB
==> Installing rabbitmq
==> Downloading https://dl.bintray.com/rabbitmq/all/rabbitmq-server/3.7.6/rabbitmq-server-generic-unix-3.7.6.tar.xz
######################################################################## 100.0%
==> /usr/bin/unzip -qq -j /usr/local/Cellar/rabbitmq/3.7.6_1/plugins/rabbitmq_management-3.7.6.ez rabbitmq_management-3.7.6/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.6_1: 233 files, 10.2MB, built in 11 seconds



上一篇:【转载】利用知识图谱技术,智能投研公司「 文因互联」对金融数据进行结构化提取和智能化分析
下一篇:Redis报错:redis.exceptions.ResponseError: MISCONF Redis is configured to save RDB snap

The minute you think of giving up, think of the reason why you held on so long.