We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8aa7a8 commit 31ed0f2Copy full SHA for 31ed0f2
README.md
@@ -1,5 +1,5 @@
1
# php-nginx
2
-使用 docker-compose 编排 php-fpm 和 nginx 容器,支持多应用
+使用 docker-compose 编排 php-fpm 和 nginx 容器,支持多应用,开箱即用
3
4
## 目录说明
5
- www/, 源码,如果有多个应用,使用子目录区分
@@ -20,11 +20,10 @@
20
## nginx、php-fpm 配置优化
21
> nginx、php-fpm 部分配置优化如下,请根据机器配置自行调整,相关文件及目录已挂载
22
- nginx.conf
23
- - client_max_body_size 1024m,大文件上
+ - client_max_body_size 1024m,大文件上传
24
- proxy_read_timeout 240s,慢脚本支持 for proxy(java etc.)
25
- fastcgi_read_timeout 240s,慢脚本支持 for fastcgi(php-fpm etc.)
26
- - worker_processes 4,**需要依据机器调优,CPU 核心数**,`grep 'model name' /proc/cpuinfo | wc -l`
27
- - worker_connections 1024,**需要依据机器调优,最大文件句柄数**,`ulimit -n`
+ - worker_connections 65535,**需要依据机器调优,最大文件句柄数**,`ulimit -n`
28
- gzip 相关已开启
29
- log 日志重定向
30
- www.conf
0 commit comments