From 7a89b28f3a9aa24cd6fd1d690547d3b2378b2f0a Mon Sep 17 00:00:00 2001 From: 05412 Date: Thu, 15 Aug 2024 13:44:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96nginx=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 2 +- nginx.conf | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index b21ef84..552e26b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,4 +2,4 @@ FROM alpine:latest RUN sed -i 's@dl-cdn.alpinelinux.org@mirrors.tuna.tsinghua.edu.cn@g' /etc/apk/repositories \ && apk add --no-cache nginx -CMD ["nginx", "-g", "daemon off;"] +CMD ["nginx"] diff --git a/nginx.conf b/nginx.conf index 83cfaf4..1d5d9ae 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,6 +1,7 @@ #user nobody; -worker_processes 4; +worker_processes auto; +daemon off; #error_log logs/error.log; #error_log logs/error.log notice;