redis:5.0 How can I set password in redis-cli --cluster create?
Comment From: itamarhaber
Hello @sxc9870
You should use the -a switch to provide the password to your to-be-clustered Redis instances (remember to configure the password on these beforehand).
Comment From: sxc9870
@itamarhaber Thanks,it works
Comment From: ErYoung2
Great, thanks!
Comment From: inesh-kumar
itamar@redislabs.com Can you please share more about the solution?
Comment From: itamarhaber
@inesh-kumar the -a redis-cli switch allows specifying the password. Providing the correct password is mandatory to connect successfully to a password-protected Redis instance. You can use the redis-cli --help invocation form for more information.