Ubuntu 26.04

Valkey : Install2026/05/29

 

Install Valkey that is an in-memory key-value store database.

[1] Install Valkey.
root@dlp:~#
apt -y install valkey
[2] Configure basic settings for Valkey.
root@dlp:~#
vi /etc/valkey/valkey.conf
# line 88 : listening interface
# localhost only by default
# if you'd like to connect from other Hosts,
# change to the own IP address or set to [0.0.0.0]
bind 127.0.0.1 ::1

# line 139 : listening port
port 6379

# line 380 : daemonize setting
# if you use Redis as service daemon, turn to [yes]
daemonize yes

# line 469 : number of Databases
# database ID is assigned from 0 to (setting value - 1)
databases 16

# line 545 : save caching Database on Disk
# the default settings below means like follows
# after 3600 seconds (an hour) if at least 1 change was performed
# after 300 seconds (5 minutes) if at least 100 changes were performed
# after 60 seconds if at least 10000 changes were performed
# if you like to disable this function, comment out the line and set to [save ""]
# save 3600 1 300 100 60 10000

# line 1206 : authentication password
requirepass password

# line 1551 : alternative persistence mode ("yes" means enabled)
# if enabled, Redis loses high performance but get more safety
appendonly no

# line 1609 : if enabled [appendonly yes] when writing data on Disk
# [no] means do not fsync by Redis (just let the OS flush the data)
# appendfsync always
appendfsync everysec
# appendfsync no

root@dlp:~#
systemctl restart valkey

[3] If UFW is enabled and also you want to access to Valkey from remote hosts, allow service.
root@dlp:~#
ufw allow redis

Rule added
Rule added (v6)
Matched Content