'NGINX-Installer.sh' updaten
This commit is contained in:
@@ -280,11 +280,11 @@ newaliases
|
|||||||
# NETDATA #
|
# NETDATA #
|
||||||
#-------------------#
|
#-------------------#
|
||||||
if [ $netdata = 1 ]
|
if [ $netdata = 1 ]
|
||||||
then
|
then
|
||||||
apt install -y netdata
|
apt install -y netdata
|
||||||
ufw allow 19999/tcp
|
ufw allow 19999/tcp
|
||||||
# systemctl stop netdata
|
# systemctl stop netdata
|
||||||
# systemctl disable netdata
|
# systemctl disable netdata
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#-------------------#
|
#-------------------#
|
||||||
@@ -292,28 +292,28 @@ fi
|
|||||||
# 127.0.0.1:11211 #
|
# 127.0.0.1:11211 #
|
||||||
#-------------------#
|
#-------------------#
|
||||||
if [ $memcached = 1 ]
|
if [ $memcached = 1 ]
|
||||||
then
|
then
|
||||||
apt install -y memcached
|
apt install -y memcached
|
||||||
systemctl restart memcached
|
systemctl restart memcached
|
||||||
# systemctl stop memcached
|
# systemctl stop memcached
|
||||||
# systemctl disable memcached
|
# systemctl disable memcached
|
||||||
fi
|
fi
|
||||||
#-------------------#
|
#-------------------#
|
||||||
# REDIS #
|
# REDIS #
|
||||||
# 127.0.0.1:6379 #
|
# 127.0.0.1:6379 #
|
||||||
#-------------------#
|
#-------------------#
|
||||||
if [ $redis = 1 ]
|
if [ $redis = 1 ]
|
||||||
then
|
then
|
||||||
apt install -y redis-server
|
apt install -y redis-server
|
||||||
sed -i 's/supervised no/supervised systemd/g' /etc/redis/redis.conf
|
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/# 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
|
sed -i 's/# requirepass foobared/requirepass '$passwd'/g' /etc/redis/redis.conf
|
||||||
systemctl restart redis
|
systemctl restart redis
|
||||||
systemctl restart redis.service
|
systemctl restart redis.service
|
||||||
# systemctl stop redis
|
# systemctl stop redis
|
||||||
# systemctl stop redis.service
|
# systemctl stop redis.service
|
||||||
# systemctl disable redis
|
# systemctl disable redis
|
||||||
# systemctl disable redis.service
|
# systemctl disable redis.service
|
||||||
fi
|
fi
|
||||||
#-------------------#
|
#-------------------#
|
||||||
# CERTBOT #
|
# CERTBOT #
|
||||||
|
|||||||
Reference in New Issue
Block a user