mirror of
https://github.com/mtan93/install-nextcloud.git
synced 2026-03-29 14:23:14 +01:00
Update install-nextcloud.sh
This commit is contained in:
@@ -258,9 +258,6 @@ update_and_clean
|
|||||||
apt install redis-server php-redis -y
|
apt install redis-server php-redis -y
|
||||||
cp /etc/redis/redis.conf /etc/redis/redis.conf.bak
|
cp /etc/redis/redis.conf /etc/redis/redis.conf.bak
|
||||||
###adjust Redis_Server
|
###adjust Redis_Server
|
||||||
sed -i "s/port 6379/port 0/" /etc/redis/redis.conf
|
|
||||||
sed -i s/\#\ unixsocket/\unixsocket/g /etc/redis/redis.conf
|
|
||||||
sed -i "s/unixsocketperm 700/unixsocketperm 770/" /etc/redis/redis.conf
|
|
||||||
sed -i "s/# maxclients 10000/maxclients 512/" /etc/redis/redis.conf
|
sed -i "s/# maxclients 10000/maxclients 512/" /etc/redis/redis.conf
|
||||||
usermod -a -G redis www-data
|
usermod -a -G redis www-data
|
||||||
cp /etc/sysctl.conf /etc/sysctl.conf.bak && sed -i '$avm.overcommit_memory = 1' /etc/sysctl.conf
|
cp /etc/sysctl.conf /etc/sysctl.conf.bak && sed -i '$avm.overcommit_memory = 1' /etc/sysctl.conf
|
||||||
|
|||||||
Reference in New Issue
Block a user