HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
We can set a password by redis profile parameters so that clients connected to redis service requires password authentication, so you can make your redis services more secure.
We can set the following command to check whether the password verification:
127.0.0.1:6379> CONFIG get requirepass 1) "requirepass" 2) ""
By default requirepass parameter it is empty, which means you do not need the password to login can connect to redis service.
You can modify the parameters the following command:
127.0.0.1:6379> CONFIG set requirepass "w3resource" OK 127.0.0.1:6379> CONFIG get requirepass 1) "requirepass" 2) "w3resource"
After setting the password, the client connection redis service requires password authentication, or can not execute the command.
AUTH command basic syntax is as follows:
127.0.0.1:6379> AUTH password
127.0.0.1:6379> AUTH "w3resource" OK 127.0.0.1:6379> SET mykey "Test value" OK 127.0.0.1:6379> GET mykey "Test value"