Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 31ed0f2

Browse files
committed
modify readme
1 parent d8aa7a8 commit 31ed0f2

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

‎README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# php-nginx
2-
使用 docker-compose 编排 php-fpm 和 nginx 容器,支持多应用
2+
使用 docker-compose 编排 php-fpm 和 nginx 容器,支持多应用,开箱即用
33

44
## 目录说明
55
- www/, 源码,如果有多个应用,使用子目录区分
@@ -20,11 +20,10 @@
2020
## nginx、php-fpm 配置优化
2121
> nginx、php-fpm 部分配置优化如下,请根据机器配置自行调整,相关文件及目录已挂载
2222
- nginx.conf
23-
- client_max_body_size 1024m,大文件上
23+
- client_max_body_size 1024m,大文件上传
2424
- proxy_read_timeout 240s,慢脚本支持 for proxy(java etc.)
2525
- 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`
26+
- worker_connections 65535,**需要依据机器调优,最大文件句柄数**,`ulimit -n`
2827
- gzip 相关已开启
2928
- log 日志重定向
3029
- www.conf

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /