How to set password for redis-server

Posted by

Step 1: Run your redis-server

Step 2 : Run your redis-cli

Step 3: Check your redis password set or not for this command

config get requirepass

not set your redis password

Step 4 : So set password for this command

config set requirepass "p@ssw$rd"

After that check get value or not

Password set successful

Step 5: So press password get value and any result for this command

auth p@ssw$rd

After that value

Leave a Reply

Your email address will not be published. Required fields are marked *

0
Would love your thoughts, please comment.x
()
x