LoginSignup
173

More than 5 years have passed since last update.

posted at

updated at

Organization

MacにRedisをインストールする

Homebrewを利用してインストール

brew install redis
==> Downloading http://redis.googlecode.com/files/redis-2.6.10.tar.gz
######################################################################## 100.0%
==> make -C /private/tmp/redis-e09G/redis-2.6.10/src CC=cc
==> 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/2.6.10: 9 files, 748K, built in 9 seconds

起動

 redis-server /usr/local/etc/redis.conf

接続

redis-cli

確認

redis 127.0.0.1:6379> set key val
OK
redis 127.0.0.1:6379> get key
"val"

GUIクライアント
* http://redisdesktop.com/
* https://github.com/joeferner/redis-commander

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
What you can do with signing up
173