Installing Redis on Ubuntu is very simple, just execute the following two lines of commands:
sudo apt update
sudo apt install redis-server
Once the installation is complete, the Redis service will start automatically. To check the status of a service:
sudo systemctl status redis-server
The following content indicates that the installation started successfully:
redis-server.service - Advanced key-value store
Loaded: loaded (/lib/systemd/system/redis-server.service; enabled; vendor >
Active: active (running) since Thu 2023-08-24 11:04:10 CST; 41min ago
Docs: http://redis.io/documentation,
man:redis-server(1)
Process: 4860 ExecStart=/usr/bin/redis-server /etc/redis/redis.conf (code=e>
Main PID: 4862 (redis-server)
Tasks: 4 (limit: 4561)
Memory: 1.9M
CGroup: /system.slice/redis-server.service
└─4862 /usr/bin/redis-server 127.0.0.1:6379