码迷,mamicode.com
首页 > 其他好文 > 详细

Redis

时间:2017-11-24 23:51:10      阅读:123      评论:0      收藏:0      [点我收藏+]

标签:tar   install   执行命令   /usr   htm   quit   span   输出   .net   

  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.csdn.net/xiangwanpeng/article/details/54586087

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

Redis

标签:tar   install   执行命令   /usr   htm   quit   span   输出   .net   

原文地址:http://www.cnblogs.com/hizf/p/7892606.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!