nginx 1.4.6 设置上传大小 client_max_body_size
2017-06-26 14:22
851 查看
1. 以下代码加入 /etc/nginx/nginx.conf 文件中的 http{ ... } 块中
[plain] view
plain copy
# set client body size to 8M #
client_max_body_size 8M;
2. PHP 设置上传大小
打开 /etc/php5/fpm/php.ini 文件中 修改以下几个参数
[plain] view
plain copy
# set client body size to 8M #
client_max_body_size 8M;
2. PHP 设置上传大小
打开 /etc/php5/fpm/php.ini 文件中 修改以下几个参数
;This sets the maximum amount of memory in bytes that a script is allowed to allocate memory_limit = 32M ;The maximum size of an uploaded file. upload_max_filesize = 8M ;Sets max size of post data allowed. This setting also affects file upload. To upload large files, this value must be larger than upload_max_filesize post_max_size = 16M
相关文章推荐
- nginx 1.4.6 设置上传大小 client_max_body_size
- 通过设置nginx的client_max_body_size解决nginx+php上传大文件的问题
- 通过设置nginx的client_max_body_size解决nginx+php上传大文件的问题(报错 http 413 error)
- [转]通过设置nginx的client_max_body_size解决nginx+php上传大文件的问题
- nginx 更改配置client_max_body_size没有生效 nginx.conf 修改默认限制上传附件大小
- 通过设置nginx的client_max_body_size解决nginx+php上传大文件的问题
- nginx优化上传文件大小的限制client_max_body_size 8m;
- 通过设置nginx的client_max_body_size解决nginx+php上传大文件的问题
- 设置nginx的client_max_body_size解决nginx+php上传大文件的问题
- 通过设置nginx的client_max_body_size解决nginx+php上传大文件的问题
- 通过设置nginx的client_max_body_size解决nginx+php上传大文件的问题
- nginx的client_max_body_size解决nginx+php上传大文件的问题
- nginx+php 上传文件大小的问题client_max_body_size
- client_max_body_size 客户端上传文件大小
- [置顶] nginx配置的client_max_body_size没有效果
- nginx+php搭建的PHP上传大文件出现的问题client_max_body_size
- nginx 更改配置client_max_body_size没有生效
- JVM 内存设置大小(Xms Xmx PermSize MaxPermSize 区别)
- 文件上传失败 -nginx报错 client intended to send too large body: 1331696 bytes
- 设置IIS7文件上传的最大大小 maxAllowedContentLength,maxRequestLength