'NGINX-Installer.sh' updaten

This commit is contained in:
ictmaatwerk
2018-09-12 13:06:57 +00:00
parent 1f5690cf5e
commit 1ad4244133

View File

@@ -280,11 +280,11 @@ newaliases
# NETDATA #
#-------------------#
if [ $netdata = 1 ]
then
then
apt install -y netdata
ufw allow 19999/tcp
# systemctl stop netdata
# systemctl disable netdata
ufw allow 19999/tcp
# systemctl stop netdata
# systemctl disable netdata
fi
#-------------------#
@@ -292,28 +292,28 @@ fi
# 127.0.0.1:11211 #
#-------------------#
if [ $memcached = 1 ]
then
apt install -y memcached
systemctl restart memcached
# systemctl stop memcached
# systemctl disable memcached
then
apt install -y memcached
systemctl restart memcached
# systemctl stop memcached
# systemctl disable memcached
fi
#-------------------#
# REDIS #
# 127.0.0.1:6379 #
#-------------------#
if [ $redis = 1 ]
then
apt install -y redis-server
sed -i 's/supervised no/supervised systemd/g' /etc/redis/redis.conf
sed -i 's/# bind 127.0.0.1 ::1/bind 127.0.0.1 ::1/g' /etc/redis/redis.conf
sed -i 's/# requirepass foobared/requirepass '$passwd'/g' /etc/redis/redis.conf
systemctl restart redis
systemctl restart redis.service
# systemctl stop redis
# systemctl stop redis.service
# systemctl disable redis
# systemctl disable redis.service
then
apt install -y redis-server
sed -i 's/supervised no/supervised systemd/g' /etc/redis/redis.conf
sed -i 's/# bind 127.0.0.1 ::1/bind 127.0.0.1 ::1/g' /etc/redis/redis.conf
sed -i 's/# requirepass foobared/requirepass '$passwd'/g' /etc/redis/redis.conf
systemctl restart redis
systemctl restart redis.service
# systemctl stop redis
# systemctl stop redis.service
# systemctl disable redis
# systemctl disable redis.service
fi
#-------------------#
# CERTBOT #