The guide describes how to install Redis server in Ubuntu 20.04
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 2022-01-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.The default Redis port is 6379.
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-lru
We 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.
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…