在mac OS 下安装redis 6.x版本,执行 sudo make test 会报如下错误。
[exception]: Executing test client: wrong # args: should be "close channelId".
wrong # args: should be "close channelId"while executing
"close $fd write"("uplevel" body line 20)invoked from within
"uplevel 1 $code"(procedure "test" line 47)invoked from within
"test "Non-interactive non-TTY CLI: $name" $code"(procedure "test_nontty_cli" line 2)invoked from within
"test_nontty_cli "Piping raw protocol" {set fd [open_cli "--pipe"]fconfigure $fd -blocking true# Create a new "("uplevel" body line 259)invoked from within
"uplevel 1 $code "(procedure "start_server" line 3)invoked from within
"start_server {tags {"cli"}} {proc open_cli {{opts "-n 9"}} {set ::env(TERM) dumbset cmdline [rediscli [srv port] $opts]..."(file "tests/l" line 3)invoked from within
"source $path"(procedure "execute_test_file" line 4)invoked from within
"execute_test_file $data"(procedure "test_client_main" line 10)invoked from within
"test_client_main $::test_server_port "
Killing still running Redis server 62927
Killing still running Redis server 63276
Killing still running Redis server 63291
Killing still running Redis server 63306
Killing still running Redis server 63640
Killing still running Redis server 63656
Killing still running Redis server 63669
Killing still running Redis server 63686
Killing still running Redis server 63693
Killing still running Redis server 63718
Killing still running Redis server 64131
Killing still running Redis server 64147
Killing still running Redis server 64376
Killing still running Redis server 64390
Killing still running Redis server 64611
Killing still running Redis server 64815
Killing still running Redis server 64885
Killing still running Redis server 64940
Killing still running Redis server 64952
Killing still running Redis server 65279
Killing still running Redis server 65298
Killing still running Redis server 65326
Killing still running Redis server 65431
make[1]: *** [test] Error 1
make: *** [test] Error 2
通过在网络一顿搜索无果后,准备换个版本再试试。猛的发现在官网清清楚楚的写着几行极简单的命令。
下载、解压、编译Redis$ wget .0.
$ tar xzf redis-6.0.
$ cd redis-6.0.6
$ make
进入到解压后的 src 目录,通过如下命令启动Redis:$ redis-server
您可以使用内置的客户端与Redis进行交互:$ src/redis-cli
redis> set foo bar
OK
redis> get foo
"bar"
顿时捂了,根本就不需要make test / make install 啥的,直接 make ,就成功了!看来还是不能偷懒,随便百度找一篇文章就跟着安装,还是得耐心的先去官网看看。
终于明白为啥百度搜索一番没结果的原因了,这错误太低级。发这篇文章也只是给同样偷懒的同学提个醒。先去官网看看吧!
本文发布于:2024-01-29 11:01:54,感谢您对本站的认可!
本文链接:https://www.4u4v.net/it/170649731814818.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
留言与评论(共有 0 条评论) |