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 45b0d43

Browse files
committed
modify readme
1 parent ab3b9e3 commit 45b0d43

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

‎README.md‎

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,22 @@
1717

1818
## nginx、php-fpm 配置优化
1919
> nginx、php-fpm 部分配置优化如下,请根据机器配置自行调整,相关文件及目录已挂载
20-
- nginx.conf,client_max_body_size 1024m,大文件上传
21-
- nginx.conf,worker_processes 4
22-
- nginx.conf, worker_connections 1024,**需要依据机器调优,最大文件句柄数,ulimit -n**
23-
- nginx.conf,gzip 相关已开启
24-
- nginx.conf,log 日志重定向
25-
- www.conf,pm 相关优化,从上到下,dynamic 100 75 50 100,**需要依据机器调优,内存使用率**
26-
- php.ini,post_max_size = 1024M、upload_max_filesize = 1024M,大文件上传
27-
- php.ini,date.timezone = Asia/Shanghai
28-
- opcache.ini,enable 128M 60s
20+
- nginx.conf
21+
- client_max_body_size 1024m,大文件上传
22+
- proxy_read_timeout 600s,慢脚本支持(crontab)
23+
- worker_processes 4
24+
- worker_connections 1024,**需要依据机器调优,最大文件句柄数,ulimit -n**
25+
- gzip 相关已开启
26+
- log 日志重定向
27+
- www.conf
28+
- pm 相关优化,从上到下,dynamic 100 75 50 100,**需要依据机器调优,内存使用率**
29+
- php.ini
30+
- memory_limit = 256M,for yii2 class autoload script
31+
- post_max_size = 1024M
32+
- upload_max_filesize = 1024M,大文件上传
33+
- date.timezone = Asia/Shanghai
34+
- opcache.ini
35+
- enable 128M 60s
2936

3037
## php-fpm
3138
> 为了让容器内脚本可写目录和文件,如日志(runtime/、web/),容器目录需要设置 www-data 用户和组

0 commit comments

Comments
(0)

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