Kaynağa Gözat

Reduce the maximum web server connections

Bob Mottram 10 yıl önce
ebeveyn
işleme
4306d08ba4
1 değiştirilmiş dosya ile 2 ekleme ve 0 silme
  1. 2
    0
      install-freedombone.sh

+ 2
- 0
install-freedombone.sh Dosyayı Görüntüle

@@ -3004,6 +3004,8 @@ function install_web_server {
3004 3004
   fi
3005 3005
 
3006 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 3010
   # install a script to easily enable and disable nginx virtual hosts
3009 3011
   if [ ! -d $INSTALL_DIR ]; then