妙博客

世界上最可怜的人,结构没破位赚一点就跑,结构破位死扛幻想反转

nginx 请求出现 Request Entity Too Large问题的解决方法

解决方法:

1、打开nginx服务的配置文件nginx.conf, 路径一般是:/usr/local/nginx/conf/nginx.conf。

2、在http{}中加入client_max_body_size 100m,我这里配置的是100M。

http {

client_max_body_size 100m;


    include       mime.types;
    default_type  application/octet-stream;

3、重新nginx服务。


假设你的后台为php,php.ini设置如下

vim /phpstudy/server/php/etc/php.ini

post_max_size = 10M

upload_max_filesize = 10M

«   2026年11月   »
一 二 三 四 五 六 日
1
2345678
9101112131415
16171819202122
23242526272829
30
网站分类
搜索
标签列表
文章归档
网站收藏
友情链接
  • 订阅本站的 RSS 2.0 新闻聚合

Copyright Your 142132.com Rights Reserved. 赣ICP备17010829号-2