Skip to content

Instantly share code, notes, and snippets.

@soulmachine
Created December 9, 2019 12:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save soulmachine/4b471d6c6d757f19f7861c15b4ca8e48 to your computer and use it in GitHub Desktop.
Save soulmachine/4b471d6c6d757f19f7861c15b4ca8e48 to your computer and use it in GitHub Desktop.

Install Redis on Debian 10

Install and Configure

apt install redis-server
sudo systemctl enable redis
sudo systemctl restart redis
sudo systemctl status redis

Edit /etc/redis/redis.conf:

supervised systemd
bind 0.0.0.0
requirepass your_password

You can use openssl rand 60 | openssl base64 -A to generate a strong password.

Restart Redis server by running sudo systemctl restart redis.

IP whitelist

sudo apt-get install ufw
sudo ufw enable
sudo ufw status

sudo ufw allow proto tcp from client_ip_address to any port 6379

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment