Installation on Ubuntu / Debian
The redis-server package from Ubuntu's official repositories provides the server and redis-cli. After sudo apt install -y redis-server, the service is started and enabled automatically by default. To get a more up-to-date version than the one in the distribution's repositories, add Redis's official APT repository (packages.redis.io) — check depending on the version you want.
Service management
The systemd unit is named redis-server on Debian/Ubuntu, which differs from other distributions (where it is simply called redis). Use sudo systemctl status redis-server for the status, and sudo systemctl enable redis-server to ensure startup at boot. Verify connectivity with redis-cli ping (expected response: PONG).
Configuration and security
The /etc/redis/redis.conf file controls the listening address (bind), the password (requirepass), and persistence. By default Redis only listens on 127.0.0.1. If you open it to the network, you must enable requirepass and a firewall. To run Redis under systemd, the supervised systemd directive is usually already set by the package.