I've set a password for my Redis server and when I try to restart the Redis server with sudo service redis_6379 restart then I get the following error message:
NOAUTH Authentication required.
How can I pass my password through the restart command?
The Redis version is 3.0.3.
To start Redis client, open the terminal and type the command redis-cli. This will connect to your local server and now you can run any command. In the above example, we connect to Redis server running on the local machine and execute a command PING, that checks whether the server is running or not.
If you started the Redis server using the redis-server command, you could stop the Redis server by pressing CTRL + C.
You could modify your init.d/redis_6379
script and use the -a
parameter of redis-cli
to specify the password:
CLIEXEC="/usr/local/bin/redis-cli -a your_secret"
redis-cli connect to your server and authenticate yourself.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With