hello cc

redis基本使用

Posted on 2017-03-13 12:11  星际海盗  阅读(118)  评论(0编辑  收藏  举报

 

1. install

  add-apt-repository ppa:chris-lea/redis-server
  apt-get update
  apt-get install redis-server

2. config

locate redis.conf

or:   /etc/redis/redis.conf

set port

set bing ip

.....

3. start

command: redis-server   start redis server

command:redis-cli    link to redis server 

command:redis-cli -h host -p port -a password      excute command on remote server

command:ping      check redis whether it is running...

127.0.0.1:6379> ping
PONG

command:INFO      get redis server statistics infomation...

 

4. manager tool

  https://redisdesktop.com/download

 

5. sync data to mysql:

  http://blog.csdn.net/hpb21/article/details/7905352

 

6. where use redis:

  http://database.51cto.com/art/201504/471158.htm

 

hello man