<\/span><\/h2>\r\n\r\n\r\n\r\nThe Redis package is by default included on Debian 11 repository. You can proceed with a pre-update before the installation:<\/p>\r\n\r\n\r\n\r\n
apt-get update -y; apt-get upgrade -y<\/code><\/pre>\r\n\r\n\r\n\r\nAfter the update is done, you can install Redis with this command:
apt-get install redis-server -y<\/code><\/p>\r\n\r\n\r\n\r\nOnce your installation is done, you can check the status from your redis with the following command:
systemctl status redis-server<\/code><\/p>\r\n\r\n\r\n\r\nYou should see an output like this:<\/p>\r\n\r\n\r\n\r\n
root@server:~# systemctl status redis-server\r\n\u25cf redis-server.service - Advanced key-value store\r\n Loaded: loaded (\/lib\/systemd\/system\/redis-server.service; enabled; vendor preset: enabled)\r\n Active: active (running) since Sat 2021-11-27 01:54:46 EST; 49s ago\r\n Docs: http:\/\/redis.io\/documentation,\r\n man:redis-server(1)\r\n Main PID: 14406 (redis-server)\r\n Status: \"Ready to accept connections\"\r\n Tasks: 5 (limit: 4678)\r\n Memory: 7.2M\r\n CPU: 244ms\r\n CGroup: \/system.slice\/redis-server.service\r\n \u2514\u250014406 \/usr\/bin\/redis-server 127.0.0.1:6379\r\n\r\nNov 27 01:54:46 server.domain.com systemd[1]: Starting Advanced key-value store...\r\nNov 27 01:54:46 server.domain.com systemd[1]: Started Advanced key-value store.<\/code><\/pre>\r\n\r\n\r\n\r\n