码迷,mamicode.com
首页 > 系统相关 > 详细

Linux下Reids的安装和使用

时间:2017-06-09 12:31:47      阅读:189      评论:0      收藏:0      [点我收藏+]

标签:using   make   release   bsp   注释   wget   mpi   pil   安装和使用   

简单记录一下

redis的官网:https://redis.io/

官网介绍:

Installation

Download, extract and compile Redis with:

$ wget http://download.redis.io/releases/redis-3.2.9.tar.gz
$ tar xzf redis-3.2.9.tar.gz
$ cd redis-3.2.9
$ make

The binaries that are now compiled are available in the src directory. Run Redis with:

$ src/redis-server

You can interact with Redis using the built-in client:

$ src/redis-cli
redis> set foo bar
OK
redis> get foo
"bar"

报错问题如下:

技术分享

修改redis.conf 

注释掉bind IP

将protected-mode 设置为no

 

服务端启动:redis-server redis.conf

客户端连接: redis-cli -h pid -p 6379

 

 







Linux下Reids的安装和使用

标签:using   make   release   bsp   注释   wget   mpi   pil   安装和使用   

原文地址:http://www.cnblogs.com/atomicbomb/p/6971233.html

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