This guide describes how to install Redis server in Debian 11
We made in a few minutes using the console.
We log into the console and perform the installation:
apt-get install redis-server -y
We can check the service status by issuing an order:
systemctl status redis-server Poniżej wynik:? redis-server.service - Advanced key-value store Loaded: loaded (/lib/systemd/system/redis-server.service; enabled; vendor preset: enabled) Active: active (running) since Sun 2021-09-26 02:40:45 UTC; 3s ago Docs: http://redis.io/documentation, man:redis-server(1) Main PID: 379829 (redis-server) Status: "Ready to accept connections" Tasks: 5 (limit: 9510) Memory: 6.9M CPU: 62ms CGroup: /system.slice/redis-server.service ??379829 /usr/bin/redis-server 127.0.0.1:6379 Sep 26 02:40:45 debian11 systemd[1]: Starting Advanced key-value store... Sep 26 02:40:45 debian11 systemd[1]: Started Advanced key-value store.By default, Redis listens on port 6379. You can verify it using the following command:
To check the redis listening, we can execute the command:
ss -antpl | grep redisWe will see a similar log:
LISTEN 0 511 127.0.0.1:6379 0.0.0.0:* users:(("redis-server",pid=379829,fd=6)) LISTEN 0 1024 127.0.0.1:9121 0.0.0.0:* users:(("redis_exporter",pid=14922,fd=3)) LISTEN 0 511 [::1]:6379 [::]:* users:(("redis-server",pid=379829,fd=7))We edit the redis configuration file:
nano /etc/redis/redis.confand add a sign # before. The whole should look like:
#bind 127.0.0.1 ::1Thanks to this, our redis server will only listen locally.
We also set the amount of RAM in this file:
maxmemory 500mb maxmemory-policy allkeys-lruWe reboot:
systemctl restart redis-serverWe can get to redis from the console by issuing a command:
redis-cliNow for an example of operation.
issue the command:
127.0.0.1:6379> pingWe get the answer
PONGSo everything works perfectly fine.
Related entries:
gconf-service gconf-service-backend gconf2-common libappindicator1 libc++1 libc++1-9 libc++abi1-9 libdbusmenu-gtk4 libgail-common libgail18 libgconf-2-4 libgtk2.0-0 libgtk2.0-bin libgtk2.0-common All-in-one voice and text chat for gamers All-in-one voice and text chat for gamers that's free 22.04 Installing Rocket.Chat Server on Rocky Linux 8 Nmap - Utility for scanning open ports The password must be changed Password inactive Full configuration of BIND and DNS on the new server
The guide below describes how to install KeePass on Ubuntu. Całość wykonamy za pomocą kilku poleceń…
Master PDF Editor is a comprehensive PDF program, which includes many features. Oprócz tworzenia i edycji…
Iotop jest prostym narzędziem dla systemów Uniksowych umożliwiającym monitorowanie użycia dowolnego nośnika pamięci flash/hdd/ssd w…
You can separate two or more commands with semicolons (;), Semicolon (;): służy do oddzielania…
Poniższy poradnik opisuje w jaki sposób za pomocą konsoli możemy dokonać edycji danych zdjęcia exif.…
The following guide describes how to install Rocket.Chat on Rocky Linux 8 Całość bardzo prosto zainstalujemy…