Redis

From The Brainwrecked Wiki
Revision as of 04:17, 11 December 2019 by BrainwreckedTech (talk | contribs) (Created page.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Redis is used by several programs, including rspamd (e-mail), NextCloud, OnlyOffice, and Wordpress (optional).

Prerequisites

None

Required Packages

sudo pacman -Syu redis

Optional Packages

sudo pacman -Syu php-redis

Configuration

By default, redis is already configured to bind to 127.0.0.1:6379, but the Unix socket is not enabled.

/etc/redis.conf
...
# Unix socket.
#
# Specify the path for the Unix socket that will be used to listen for
# incoming connections. There is no default, so Redis will not listen
# on a unix socket when not specified.
#
unixsocket /run/redis/redis.sock
unixsocketperm 700
...

You will also need to add users to the redis group so processes can access redis

for username in http rspamd; do sudo usermod -G redis ${username}; done