sudo nano /etc/redis/redis.conf
# requirepass foobared
Uncomment it by removing the #
, and change foobared
to a secure password.
sudo systemctl restart redis.service
References
https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-redis-on-ubuntu-20-04