简单记录一下
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
时间: 2024-10-04 01:03:40