File tree Expand file tree Collapse file tree 1 file changed +16
-9
lines changed
Expand file tree Collapse file tree 1 file changed +16
-9
lines changed Original file line number Diff line number Diff line change 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 用户和组
You can’t perform that action at this time.
0 commit comments