WARNING: redis-trib.rb is not longer available! You should use
redis-cli instead.All commands and features belonging to redis-trib.rb have been moved
to redis-cli. In order to use them you should call redis-cli with the
–cluster option followed by the subcommand name, arguments and options.Use the following syntax: redis-cli --cluster SUBCOMMAND [ARGUMENTS]
[OPTIONS]
这个报错主要是说这个条命令不能用了redis-trib.rb
使用新的redis-cli --cluster SUBCOMMAND [ARGUMENTS] [OPTIONS]
例如
redis-cli --cluster create IP:6379 IP:6379 IP:6379 IP:6379 IP:6379 IP:6379 --cluster-replicas 1
这样就可以了
NOAUTH Authentication required.
这个报错就是说需要验证,因为是配置文件里面配置的密码,所以这里也是需要输入密码验证才能成功
例如
redis-cli --cluster create IP:6379 IP:6379 IP:6379 IP:6379 IP:6379 IP:6379 --cluster-replicas 1 -a 密码