Update 'NGINX-Installer.sh'
This commit is contained in:
@@ -247,7 +247,7 @@ newaliases
|
|||||||
##---------------##
|
##---------------##
|
||||||
|
|
||||||
if [ $memcached = 1 ]; then
|
if [ $memcached = 1 ]; then
|
||||||
apt install -y memcached
|
apt install -y
|
||||||
# systemctl stop memcached
|
# systemctl stop memcached
|
||||||
# systemctl disable memcached
|
# systemctl disable memcached
|
||||||
fi
|
fi
|
||||||
@@ -261,6 +261,8 @@ if [ $redis = 1 ]; then
|
|||||||
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 '$password'/g' /etc/redis/redis.conf
|
sed -i 's/# requirepass foobared/# requirepass '$password'/g' /etc/redis/redis.conf
|
||||||
|
git clone https://github.com/phpredis/phpredis.git /opt/phpredis
|
||||||
|
sed -i "\$a0 3 * * 1 root git clone https://github.com/phpredis/phpredis.git /opt/phpredis >/dev/null 2>&1" /etc/crontab
|
||||||
# systemctl stop redis
|
# systemctl stop redis
|
||||||
# systemctl disable redis
|
# systemctl disable redis
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user