我正在尝试在WSL上安装Redis,但是集群命令始终失败。我运行make test
并得到以下输出:
...
[ok]: PSYNC2: cluster is consistent after failover
Logged warnings (pid 8970):
(none)
[exception]: Executing test client: kill: (9088): No such process.
kill: (9088): No such process
while executing
"exec kill -9 $bench_pid"
("uplevel" body line 47)
invoked from within
"uplevel 1 $code "
(procedure "start_server" line 3)
invoked from within
"start_server {} {
# Config
set debug_msg 0 ; # Enable additional debug messages
set no_exit 0 ; # Do no..."
("uplevel" body line 2)
invoked from within
"uplevel 1 $code "
(procedure "start_server" line 3)
invoked from within
"start_server {} {
start_server {} {
# Config
set debug_msg 0 ; # Enable additional debug messages
set no_exit 0 ..."
("uplevel" body line 2)
invoked from within
"uplevel 1 $code "
(procedure "start_server" line 3)
invoked from within
"start_server {tags {"psync2"}} {
start_server {} {
start_server {} {
# Config
set debug_msg 0 ; # Enable additional debug mess..."
(file "tests/integration/psync2-reg.tcl" line 7)
invoked from within
"source $path"
(procedure "execute_tests" line 4)
invoked from within
"execute_tests $data"
(procedure "test_client_main" line 10)
invoked from within
"test_client_main $::test_server_port "
Killing still running Redis server 7694
Killing still running Redis server 7702
Killing still running Redis server 7717
Killing still running Redis server 7721
Killing still running Redis server 7729
Killing still running Redis server 7735
Killing still running Redis server 7840
Killing still running Redis server 8107
Killing still running Redis server 8134
Killing still running Redis server 8136
Killing still running Redis server 8166
Killing still running Redis server 8640
Killing still running Redis server 8658
Killing still running Redis server 8701
Killing still running Redis server 8752
Killing still running Redis server 8907
Killing still running Redis server 8934
Killing still running Redis server 8969
Killing still running Redis server 9019
Killing still running Redis server 9061
Killing still running Redis server 9103
Killing still running Redis server 9146
Killing still running Redis server 9165
Killing still running Redis server 9203
Killing still running Redis server 9277
Killing still running Redis server 9286
I/O error reading reply
while executing
"{*}$r type $k"
(procedure "createComplexDataset" line 27)
invoked from within
"createComplexDataset $r $ops"
(procedure "bg_complex_data" line 4)
invoked from within
"bg_complex_data [lindex $argv 0] [lindex $argv 1] [lindex $argv 2] [lindex $argv 3]"
(file "tests/helpers/bg_complex_data.tcl" line 10)
I/O error reading reply
while executing
"{*}$r type $k"
(procedure "createComplexDataset" line 27)
invoked from within
"createComplexDataset $r $ops"
(procedure "bg_complex_data" line 4)
invoked from within
"bg_complex_data [lindex $argv 0] [lindex $argv 1] [lindex $argv 2] [lindex $argv 3]"
(file "tests/helpers/bg_complex_data.tcl" line 10)
I/O error reading reply
while executing
"{*}$r type $k"
(procedure "createComplexDataset" line 43)
invoked from within
"createComplexDataset $r $ops"
(procedure "bg_complex_data" line 4)
invoked from within
"bg_complex_data [lindex $argv 0] [lindex $argv 1] [lindex $argv 2] [lindex $argv 3]"
(file "tests/helpers/bg_complex_data.tcl" line 10)
Killing still running Redis server 9291
Killing still running Redis server 9303
Killing still running Redis server 9317
Makefile:262: recipe for target 'test' failed
make[1]: *** [test] Error 1
make[1]: Leaving directory '/tmp/redis-stable/src'
Makefile:6: recipe for target 'test' failed
make: *** [test] Error 2
如何解决此问题,或者调试该调试的下一步是什么?我正在尝试安装Redis 5.0.4。我没有在WSL上启用任何防火墙。
答案 0 :(得分:0)
尝试了很多次之后,我在“ [例外]:执行测试客户端:kill:(9088):没有这样的过程”中发现pid喜欢9088的过程。是成为僵尸进程无法杀死的重新标记。那是我由apt-get安装的redis。 所以我删除了/ usr / bin中的redisbenchmark并删除了我安装的redis,然后使测试成功。