This file contains HOWTO instructions for installing redis on your environment
- Ubuntu 20.04
- User with shell and root rights on the system
All instructions tested on Ubuntu 20, but they will work for other Debian Like system. You can choose which you are familiar with.
- Apdate repos
sudo apt update
- Install redis-server package
sudo apt install redis-server
Main config file is : /etc/redis/redis.conf For configuration you mast use text editor - for example nano
- For Runing Redis at system unit - find and change supervised parameter to
supervised systemd
- Enabling autostart after reboot
sudo systemctl enable redis.service
- ReStart redis service
sudo systemctl restart redis.service
- Check Status
sudo systemctl status redis
For working with redis you can use redis-cli util
redis-cli
For more information you can read official documentation or this short HOWTO