美文网首页
mac brew 安装 redis

mac brew 安装 redis

作者: 沉默羔羊121 | 来源:发表于2020-06-29 16:30 被阅读0次

用brew安装redis

localhost:Downloads macbook$ sudo chown -R $(whoami) $(brew --prefix)/*
localhost:Downloads macbook$ brew install redis
Updating Homebrew...
==> Tapping homebrew/core
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core'...
fatal: unable to access 'https://github.com/Homebrew/homebrew-core/': transfer closed with outstanding read data remaining
Error: Failure while executing; `git clone https://github.com/Homebrew/homebrew-core /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core` exited with 128.
Error: Failure while executing; `/usr/local/bin/brew tap homebrew/core` exited with 1.
==> Tapping homebrew/core
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core'...
remote: Enumerating objects: 173, done.
remote: Counting objects: 100% (173/173), done.
remote: Compressing objects: 100% (121/121), done.
remote: Total 739732 (delta 102), reused 99 (delta 52), pack-reused 739559
Receiving objects: 100% (739732/739732), 298.26 MiB | 282.00 KiB/s, done.
Resolving deltas: 100% (489612/489612), done.
Tapped 2 commands and 5080 formulae (5,352 files, 327MB).
==> Downloading https://homebrew.bintray.com/bottles/openssl%401.1-1.1.1g.mojave
==> Downloading from https://akamai.bintray.com/5c/5c9d113393ff3efc95e5509175305
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/redis-6.0.5.mojave.bottle.t
==> Downloading from https://akamai.bintray.com/fc/fc2ff703029e0dfceff2ecde31730
######################################################################## 100.0%
==> Installing dependencies for redis: openssl@1.1
==> Installing redis dependency: openssl@1.1
==> Pouring openssl@1.1-1.1.1g.mojave.bottle.tar.gz
==> Caveats
A CA file has been bootstrapped using certificates from the system
keychain. To add additional certificates, place .pem files in
  /usr/local/etc/openssl@1.1/certs

and run
  /usr/local/opt/openssl@1.1/bin/c_rehash

openssl@1.1 is keg-only, which means it was not symlinked into /usr/local,
because macOS provides LibreSSL.

If you need to have openssl@1.1 first in your PATH run:
  echo 'export PATH="/usr/local/opt/openssl@1.1/bin:$PATH"' >> /Users/macbook/.bash_profile

For compilers to find openssl@1.1 you may need to set:
  export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib"
  export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include"

==> Summary
🍺  /usr/local/Cellar/openssl@1.1/1.1.1g: 8,059 files, 18MB
==> Installing redis
==> Pouring redis-6.0.5.mojave.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/6.0.5: 13 files, 3.8MB
==> Caveats
==> openssl@1.1
A CA file has been bootstrapped using certificates from the system
keychain. To add additional certificates, place .pem files in
  /usr/local/etc/openssl@1.1/certs

and run
  /usr/local/opt/openssl@1.1/bin/c_rehash

openssl@1.1 is keg-only, which means it was not symlinked into /usr/local,
because macOS provides LibreSSL.

If you need to have openssl@1.1 first in your PATH run:
  echo 'export PATH="/usr/local/opt/openssl@1.1/bin:$PATH"' >> /Users/macbook/.bash_profile

For compilers to find openssl@1.1 you may need to set:
  export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib"
  export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include"

==> redis
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
localhost:Downloads macbook$ 

启动redis-server

localhost:~ macbook$ 
localhost:~ macbook$ redis-server
4977:C 29 Jun 2020 16:26:18.154 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
4977:C 29 Jun 2020 16:26:18.154 # Redis version=6.0.5, bits=64, commit=00000000, modified=0, pid=4977, just started
4977:C 29 Jun 2020 16:26:18.154 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
4977:M 29 Jun 2020 16:26:18.155 * Increased maximum number of open files to 10032 (it was originally set to 256).
                _._                                                  
           _.-``__ ''-._                                             
      _.-``    `.  `_.  ''-._           Redis 6.0.5 (00000000/0) 64 bit
  .-`` .-```.  ```\/    _.,_ ''-._                                   
 (    '      ,       .-`  | `,    )     Running in standalone mode
 |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
 |    `-._   `._    /     _.-'    |     PID: 4977
  `-._    `-._  `-./  _.-'    _.-'                                   
 |`-._`-._    `-.__.-'    _.-'_.-'|                                  
 |    `-._`-._        _.-'_.-'    |           http://redis.io        
  `-._    `-._`-.__.-'_.-'    _.-'                                   
 |`-._`-._    `-.__.-'    _.-'_.-'|                                  
 |    `-._`-._        _.-'_.-'    |                                  
  `-._    `-._`-.__.-'_.-'    _.-'                                   
      `-._    `-.__.-'    _.-'                                       
          `-._        _.-'                                           
              `-.__.-'                                               

4977:M 29 Jun 2020 16:26:18.156 # Server initialized
4977:M 29 Jun 2020 16:26:18.156 * Ready to accept connections


相关文章

网友评论

      本文标题:mac brew 安装 redis

      本文链接:https://www.haomeiwen.com/subject/eqxafktx.html