下载安装
wget http://download.redis.io/redis-stable.tar.gz
tar xvzf redis-stable.tar.gz
cd redis-stable
make & make install
2 出现:
You need tcl 8.5 or newer in order to run the Redis test
tcl没安装,说明redis需tcl环境跑起来
ok
wget http://downloads.sourceforge.net/tcl/tcl8.6.4-src.tar.gz
tar xvzf tcl8.6.4-src.tar.gz
cd tcl8.6
make & make install
3跑起测试
ls /usr/local/bin/会出现redis-cli客户端 redis-server服务端
我们先开启
redis-server
然后
redis-cli并测试 mykey
时间: 2024-12-02 10:54:49