You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
2.2 KiB

#!/bin/bash
exit 0
# Set up Redis
apt-get install -t stretch-backports redis redis-sentinel
# XXX
# probably IPv6 ?
Setting up redis-sentinel (5:4.0.10-1~bpo9+1) ...
Created symlink /etc/systemd/system/sentinel.service → /lib/systemd/system/redis-sentinel.service.
Created symlink /etc/systemd/system/multi-user.target.wants/redis-sentinel.service → /lib/systemd/system/redis-sentinel.service.
Setting up redis-server (5:4.0.10-1~bpo9+1) ...
Job for redis-server.service failed because of unavailable resources or another system error.
See "systemctl status redis-server.service" and "journalctl -xe" for details.
invoke-rc.d: initscript redis-server, action "start" failed.
● redis-server.service - Advanced key-value store
Loaded: loaded (/lib/systemd/system/redis-server.service; disabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: resources) since Sat 2018-07-14 13:50:33 MDT; 6ms ago
Docs: http://redis.io/documentation,
man:redis-server(1)
Process: 1018 ExecStart=/usr/bin/redis-server /etc/redis/redis.conf (code=exited, status=0/SUCCESS)
Jul 14 13:50:33 redis3 systemd[1]: Failed to start Advanced key-value store.
Jul 14 13:50:33 redis3 systemd[1]: redis-server.service: Unit entered faile…ate.
Jul 14 13:50:33 redis3 systemd[1]: redis-server.service: Failed with result…es
Hint: Some lines were ellipsized, use -l to show in full.
dpkg: error processing package redis-server (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of redis:
redis depends on redis-server (<< 5:4.0.10-1~bpo9+1.1~); however:
Package redis-server is not configured yet.
redis depends on redis-server (>= 5:4.0.10-1~bpo9+1); however:
Package redis-server is not configured yet.
dpkg: error processing package redis (--configure):
dependency problems - leaving unconfigured
Processing triggers for systemd (232-25+deb9u4) ...
Errors were encountered while processing:
redis-server
redis
E: Sub-process /usr/bin/dpkg returned an error code (1)
# XXX
cd /etc ; git add . ; git commit -a -m "Install redis"
vim /etc/redis/redis.conf
# Disable IPv6
-bind 127.0.0.1 ::1
+bind 127.0.0.1