博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
nginx 和php设置上传大小及可以提交的内容限制
阅读量:6902 次
发布时间:2019-06-27

本文共 464 字,大约阅读时间需要 1 分钟。

1. 以下代码加入 /etc/nginx/nginx.conf 文件中的 http{ ... } 块中

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 allocatememory_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_filesizepost_max_size = 16M

 

转载地址:http://pfpdl.baihongyu.com/

你可能感兴趣的文章
CSS HACK 区别于ie6/7/8/firefox的小问题
查看>>
编译一个可以用Qemu进行Debug的Linux Kernel:
查看>>
linux 服务器 keras 深度学习环境搭建
查看>>
xshell+xmanager远程linux图形化界面
查看>>
布局模型
查看>>
我的友情链接
查看>>
jquery 实现复选框 全选/反选
查看>>
我的友情链接
查看>>
http://www.mossle.com/wiki/13.lemon-devguide/0008.modeler
查看>>
UI自动化测试之selenium(3)——采坑填坑集
查看>>
全美五大最创新的公司
查看>>
传微软将于明年推出Linux版Office
查看>>
后LHC时代对撞机:瞬间输出能量超全球电力千倍
查看>>
Leetcode#75Sort Colorsetcode
查看>>
3月30日作业
查看>>
公司电话突然不能打外线故障处理过程
查看>>
Windows Server 2008流媒体服务器---创建播放列表
查看>>
centos添加批量添加ip提示无效参数
查看>>
PHP mkdir函数
查看>>
Linux基础命令---检查密码文件pwck
查看>>