Monday 21 September 2015

Install Redis on MAC OS

Step 1:Install Homebrew software first.

Step 2: Call following command to install redis.

brew install redis
$ brew install redis
==> Downloading https://homebrew.bintray.com/bottles/redis-3.0.2.mavericks.bottle.tar.gz
######################################################################## 100.0%
==> Pouring redis-3.0.2.mavericks.bottle.tar.gz
==> Caveats

To have launchd start redis at login:
    ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents
Then to load redis now:
    launchctl load ~/Library/LaunchAgents/homebrew.mxcl.redis.plist
Or, if you don't want/need launchctl, you can just run:
    redis-server /usr/local/etc/redis.conf
==> Summary
🍺  /usr/local/Cellar/redis/3.0.2: 9 files, 892K


Run following commands
ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.redis.plist

Open new terminal and call 'redis-server' command

$ redis-server
55201:C 21 Sep 19:49:33.229 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
55201:M 21 Sep 19:49:33.230 * Increased maximum number of open files to 10032 (it was originally set to 256).
                _._                                                  
           _.-``__ ''-._                                             
      _.-``    `.  `_.  ''-._           Redis 3.0.2 (00000000/0) 64 bit
  .-`` .-```.  ```\/    _.,_ ''-._                                   
 (    '      ,       .-`  | `,    )     Running in standalone mode
 |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
 |    `-._   `._    /     _.-'    |     PID: 55201
  `-._    `-._  `-./  _.-'    _.-'                                   
 |`-._`-._    `-.__.-'    _.-'_.-'|                                  
 |    `-._`-._        _.-'_.-'    |           http://redis.io        
  `-._    `-._`-.__.-'_.-'    _.-'                                   
 |`-._`-._    `-.__.-'    _.-'_.-'|                                  
 |    `-._`-._        _.-'_.-'    |                                  
  `-._    `-._`-.__.-'_.-'    _.-'                                   
      `-._    `-.__.-'    _.-'                                       
          `-._        _.-'                                           
              `-.__.-'                                               

55201:M 21 Sep 19:49:33.231 # Server started, Redis version 3.0.2
55201:M 21 Sep 19:49:33.231 * The server is now ready to accept connections on port 6379




No comments:

Post a Comment