Skip to content

Instantly share code, notes, and snippets.

@ashless
ashless / create new redis instance Ubuntu 20.04.md
Last active November 28, 2024 01:17 — forked from inecmc/notes.md
How to run multiple Redis instances on Ubuntu 20.04

Create the directory for the new instance

$ sudo install -o redis -g redis -d /var/lib/redis2

Create a new configuration file

$ sudo cp -p /etc/redis/redis.conf /etc/redis/redis2.conf

Apply to Ubuntu 20.04 and above

Disk

Test disk io

dd bs=64k count=4k if=/dev/zero of=<test_path>/test oflag=dsync

Network

Network config file path at /etc/netplan

Install synogear for diagnosis

sudo synogear install