Skip to content

Powered by Grav

Serveur Redis

Connecté sur brandybuck en tant qu'utilisateur sudo mountdoom, ajouter un utilisateur système Pixelfed dédié

BASH
sudo useradd -rU -s /bin/bash pixelfed
sudo passwd pixelfed

Installer le serveur Redis et des programmes additionnels

BASH
sudo apt install -y redis-server lsb-release git jpegoptim optipng pngquant ffmpeg

Modifier le fichier de configuration

BASH
sudo nano /etc/redis/redis.conf
INI
# 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 770
INI
# If you run Redis from upstart or systemd, Redis can interact with your
# supervision tree. Options:
#   supervised no      - no supervision interaction
#   supervised upstart - signal upstart by putting Redis into SIGSTOP mode
#                        requires "expect stop" in your upstart job config
#   supervised systemd - signal systemd by writing READY=1 to $NOTIFY_SOCKET
#                        on startup, and updating Redis status on a regular
#                        basis.
#   supervised auto    - detect upstart or systemd method based on
#                        UPSTART_JOB or NOTIFY_SOCKET environment variables
# Note: these supervision methods only signal "process is ready."
#       They do not enable continuous pings back to your supervisor.
#
# The default is "no". To run under upstart/systemd, you can simply uncomment
# the line below:
#
supervised systemd

Ajouter l'utilisateur pixelfed au groupe redis

BASH
sudo usermod -aG redis pixelfed

Redémarrer le serveur Redis et vérifier que tout fonctionne

BASH
sudo systemctl restart redis.service
sudo systemctl status redis.service

© 2026 howto.cogip.be. All rights reserved.