Skip to content

Commit 65b92ed

Browse files
committed
modify worker_processes auto
1 parent 9dbf4ba commit 65b92ed

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

nginx/nginx.conf

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
user nginx;
2-
worker_processes 4;
2+
worker_processes auto;
33

44
error_log /var/logs/nginx/error.log warn;
55
pid /var/run/nginx.pid;
@@ -18,12 +18,13 @@ http {
1818
'"$http_user_agent" "$http_x_forwarded_for"';
1919

2020
access_log /var/logs/nginx/access.log main;
21-
21+
2222
sendfile on;
23-
23+
2424
keepalive_timeout 65;
25-
25+
2626
client_max_body_size 1024m;
27+
2728
# read time out
2829
proxy_read_timeout 240s; # proxy - java
2930
fastcgi_read_timeout 240s; # fastcgi - php-fpm

0 commit comments

Comments
 (0)