Redis

  1. 官网下载:https://redis.io/download
  2. sudo tar -zxvf redis-3.2.7.tar.gz
  3. mv redis-3.2.7 /usr/local/redis/
  4. cd redis-3.2.7
  5. sudo make
  6. cd src
  7. sudo make install
  8. 会安装到目录/usr/local/bin下:ls-l
  9. redis-server /etc/redis/redis.conf
    redis-cli -p 6379
  10. 然后执行命令ping,若输出为pong,则证明服务成功启动。
  11. PONG
  12. 执行命令:
  13. set k1 helloworld
    get ki
  14. 127.0.0.1:6379> get k1
    "helloworld"
    127.0.0.1:6379> quit
  15.  ps -ef|grep redis
  16. zhaoyun   73073   1502  0 18:41 ?        00:00:25 redis-server *:6379
    zhaoyun   77403  73204  0 22:14 pts/4    00:00:00 grep --color=auto redis

转:http://blog.****.net/xiangwanpeng/article/details/54586087

   :https://www.cnblogs.com/wangchunniu1314/p/6339416.html