redis-trib.rb: command not found错误解决

redis-trib.rb  create  --replicas  1  127.0.0.1:7001 127.0.0.1:7002 127.0.0.1:7003 127.0.0.1:7004 127.0.0.1:7005 127.0.0.1:7006,时报错:redis-trib.rb: command not found.

解决方法:1.要在redis-trib.rb所在得文件目录下运行该命令;

                  2.要再命令前加上./,例如:./redis-trib.rb  create  --replicas  1  127.0.0.1:7001 127.0.0.1:7002 127.0.0.1:7003 127.0.0.1:7004 127.0.0.1:7005

猜你喜欢

转载自blog.csdn.net/qq_15875773/article/details/84107676