Last active
September 22, 2020 11:01
-
-
Save matriphe/87d6f4b4460152e3609e55348f2f8fcc to your computer and use it in GitHub Desktop.
Redis Systemd Service (Debian Based)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Redis In-Memory Data Store | |
After=network.target | |
[Service] | |
Type=forking | |
User=redis | |
Group=redis | |
ExecStart=/usr/local/bin/redis-server /etc/redis/6379.conf | |
ExecStop=/usr/local/bin/redis-cli shutdown | |
Restart=always | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Prepare dependencies.
Compile and install from source.
Create
systemd
file. Make changes to fit the execution and config file.Add some settings.
Now run the service.
sudo systemctl start redis.service