Browse Source

Reduce the maximum web server connections

Bob Mottram 10 years ago
parent
commit
4306d08ba4
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      install-freedombone.sh

+ 2
- 0
install-freedombone.sh View File

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