简单记录一下
redis的官网:https://redis.io/
官网介绍:
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
原文:http://www.cnblogs.com/atomicbomb/p/6971233.html