Redis Macでのスタンドアロンのインストールと簡単な使用

1250 ワード

1.インストール
1.1ダウンロード
  :https://redis.io/download

1.2解凍とインストールコマンド
  :tar zxvf redis-4.0.9.tar.gz
   : mv redis-4.0.9 /usr/local/
   :cd /usr/local/redis-4.0.9/
     sudo make test
     sudo make install
sudo make testの段階で次のようにエラーが発生した場合.
Executing test client: couldn't execute "src/redis-benchmark": no such file or directory.

次の手順に従います.
sudo make distclean
sudo make
sudo make testsudo make installを再実行すればよい
2.起動と簡単な使用
2.1起動コマンド
redis-server

2.2クライアントコマンドのテスト
redis-cli

2.3簡単テストSTRING
set hello world
get hello
del hello
get hello

3.Redisクライアント管理ツールredis-desktop-manager
4.redis構成
         ,  bind daemonize  。
bind       ,       127.0.0.1,          ,            。  ,       IP ,              。
daemonize          Redis,  no,             Redis,       yes

プロファイルの翻訳:
https://github.com/linli8/cnblogs/blob/master/redis%E5%89%AF%E6%9C%AC.conf

5.参考
http://blog.mayongfa.cn/258.html