2016-07-23 10 views
0

Ich möchte erhöhen worker_process in Nginx auf Direct installiert erhöhen, und ich diese Datei öffnen:Wie worker_process nginx Direct

nano /etc/nginx/nginx.conf 

aber keine Worker_process haben, ist unten alle Codes:

#user nginx; 

# The number of worker processes is changed automatically by CustomBuild, according to the number of CPU cores, if it's set to "1" 

pid /var/run/nginx.pid; 

#error_log logs/error.log; 
#error_log logs/error.log notice; 
#error_log logs/error.log info; 

events { 
# worker_connections 1024; 
    include /etc/nginx/nginx-events.conf; 
} 


http { 
    include  /etc/nginx/mime.types; 

    # For user configurations not maintained by DirectAdmin. Empty by default. 
    include /etc/nginx/nginx-includes.conf; 

    # Supplemental configuration 
    include /etc/nginx/nginx-modsecurity-enable.conf; 
    include /etc/nginx/nginx-defaults.conf; 
    include /etc/nginx/nginx-gzip.conf; 
    include /etc/nginx/directadmin-ips.conf; 
    include /etc/nginx/directadmin-settings.conf; 
    include /etc/nginx/nginx-vhosts.conf; 
    include /etc/nginx/directadmin-vhosts.conf; 
} 

Antwort

0

Sie können die folgende Zeile aktivieren und sie erhöhen, was Sie möchten.

+0

wenn ich es aktiviere, kann nginx nicht neu starten und zeigen fehlgeschlagen – antonio

+0

Welchen Fehler bekommen Sie? – 24x7servermanagement