Nextcloud, redis, kvmtemplate, IPs, etc.

master
Jeff Moe 6 years ago
parent c3950577cf
commit 783982b356

@ -139,3 +139,10 @@ apt-get -y install pbzip2
# Backup DB:
# Crontab, as root
crontab -u www-data -e
# Add the lines:
*/15 * * * * php -f /var/www/html/nextcloud/cron.php
*/15 * * * * /var/www/html/nextcloud/occ preview:pre-generate

@ -0,0 +1,52 @@
#!/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

@ -149,6 +149,7 @@ apt-get -y --download-only install \
debian-archive-keyring \
exuberant-ctags \
git \
haveged \
host \
less \
locales \
@ -180,6 +181,7 @@ DEBIAN_FRONTEND=noninteractive apt-get -y \
debian-archive-keyring \
exuberant-ctags \
git \
haveged \
host \
less \
locales \

@ -76,6 +76,8 @@ cat > /etc/iptables.test.rules <<EOF
# Redis Access Ports
-A INPUT -p tcp --dport 6379 -j ACCEPT
-A INPUT -p tcp --dport 16379 -j ACCEPT
# Sentinel
-A INPUT -p tcp --dport 26379 -j ACCEPT
# Allow ping
#-A INPUT -p icmp -m icmp --icmp-type 8 -j ACCEPT
@ -285,5 +287,3 @@ exit 0
# Reboot
# Set up Redis
apt-get install -t stretch-backports redis redis-sentinel

Loading…
Cancel
Save