Ubuntu Desktop 24.04にValkeyをインストールする!

Ubuntu Desktop 24.04にValkeyをインストールします。

OSの情報を確認する!

OSの情報を表示します。

$ cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=24.04
DISTRIB_CODENAME=noble
DISTRIB_DESCRIPTION="Ubuntu 24.04.4 LTS"

Kernelの情報を表示します。

$ uname -omr
6.17.0-14-generic x86_64 GNU/Linux

Valkeyをインストールする!

aptコマンドで、Valkeyをインストールします。

$ apt update; apt install -y valkey-server

ネットワーク接続の設定をインストールする!

ネットワーク接続の設定を確認します。

$ sudo grep "port 6379" /etc/valkey/valkey.conf
port 6379
# tls-port 6379
# cluster-announce-tls-port 6379
$ sudo grep bind /etc/valkey/valkey.conf
# By default, if no "bind" configuration directive is specified, the server listens
# the "bind" configuration directive, followed by one or more IP addresses.
# bind 192.168.1.100 10.0.0.1     # listens on two specific IPv4 addresses
# bind 127.0.0.1 ::1              # listens on loopback IPv4 and IPv6
# bind * -::*                     # like the default, all available interfaces
# internet, binding to all the interfaces is dangerous and will expose the
# following bind directive, that will force the server to listen only on the
bind 127.0.0.1 -::1
# Using bind-source-addr it is possible to configure a specific address to bind
# bind-source-addr 10.0.0.1
$ ss -ltrn | grep 6379
LISTEN 0      511           localhost:6379       0.0.0.0:*          
LISTEN 0      511           localhost:6379          [::]:*          

おわりに

Valkeyは、Ubuntu Desktop 24.04に、aptコマンドでインストールすることができます。

関連記事