From 594522083e0fc0d100a4f491aa77e889211f891c Mon Sep 17 00:00:00 2001 From: ubuntu-vm <1174865138@qq.com> Date: Tue, 25 Jul 2023 00:36:32 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 3 +++ php.ini | 6 ++++++ www.conf | 10 ++++++++++ 3 files changed, 19 insertions(+) create mode 100644 php.ini create mode 100644 www.conf diff --git a/Dockerfile b/Dockerfile index 7a2b85d..4df03f0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,6 +11,9 @@ ARG PHALCON_VERSION=4.1.2 \ PSR_VERSION=1.0.0 \ PHALCON_EXT_PATH=php7/64bits +COPY php.ini /usr/local/etc/php/ +COPY www.conf /usr/local/etc/php-fpm.d/ + # 安装php扩展: https://www.jianshu.com/p/20fcca06e27e RUN set -xe \ && apt-get update \ diff --git a/php.ini b/php.ini new file mode 100644 index 0000000..625712a --- /dev/null +++ b/php.ini @@ -0,0 +1,6 @@ +date.timezone = Asia/Shanghai +error_reporting=E_ALL&~E_NOTICE +log_errors = On +error_log = /var/www/logs/error.log +output_buffering = 10240000 +expose_php=off diff --git a/www.conf b/www.conf new file mode 100644 index 0000000..4800484 --- /dev/null +++ b/www.conf @@ -0,0 +1,10 @@ +[www] +user = www-data +group = www-data +listen = 127.0.0.1:9000 +pm = dynamic +pm.max_children = 100 +pm.start_servers = 20 +pm.min_spare_servers = 10 +pm.max_spare_servers = 50 +pm.max_requests = 500