[exception]: Executing test client: couldn't execute "src/redis-benchmark": no such file or directory. couldn't execute "src/redis-benchmark": no such file or directory
然后执行:
1 2 3 4 5 6 7 8
$ sudo make distclean $ sudo make $ sudo make test
\o/ All tests passed without errors!
Cleanup: may take some time... OK (base)
这时可执行文件都默认安装到了 /usr/local/redis/redis-4.0.14/src。
如果要指定安装位置,我们可以在前面执行这样的命令:
1 2
$cd src $ sudo make install PREFIX=/usr/local/redis/redis-4.0.14
这样就会在 /usr/local/redis/redis-4.0.14/bin 生成可执行文件了。
启动redis服务
1
$ sudo bin/redis-server redis.conf
启动客户端:
1 2 3
$ bin/redis-cli 127.0.0.1:6379> ping PONG
测试成功。
如果要查询 Redis Server 的版本,在客户执行:
1 2 3 4
127.0.0.1:6379> info # Server redis_version:4.0.14 ...