Redis Macでのスタンドアロンのインストールと簡単な使用
1250 ワード
1.インストール
1.1ダウンロード
1.2解凍とインストールコマンド
次の手順に従います.
2.起動と簡単な使用
2.1起動コマンド
2.2クライアントコマンドのテスト
2.3簡単テストSTRING
3.Redisクライアント管理ツール
4.redis構成
プロファイルの翻訳:
5.参考
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 test
とsudo 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