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 密碼