Selaa lähdekoodia

Reduce the maximum web server connections

Bob Mottram 10 vuotta sitten
vanhempi
commit
4306d08ba4
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2
    0
      install-freedombone.sh

+ 2
- 0
install-freedombone.sh Näytä tiedosto

3004
   fi
3004
   fi
3005
 
3005
 
3006
   sed -i "s/worker_processes 4;/worker_processes $CPU_CORES;/g" /etc/nginx/nginx.conf
3006
   sed -i "s/worker_processes 4;/worker_processes $CPU_CORES;/g" /etc/nginx/nginx.conf
3007
+  sed -i 's/worker_connections 768;/worker_connections 50;/g' /etc/nginx/nginx.conf
3008
+  sed -i 's/# server_tokens off;/server_tokens off;/g' /etc/nginx/nginx.conf
3007
 
3009
 
3008
   # install a script to easily enable and disable nginx virtual hosts
3010
   # install a script to easily enable and disable nginx virtual hosts
3009
   if [ ! -d $INSTALL_DIR ]; then
3011
   if [ ! -d $INSTALL_DIR ]; then