最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Nginx无法上传文件或者time out的解决办法
时间:2022-06-30 18:48:54 编辑:袖梨 来源:一聚教程网
我们利用phpmyadmin上传一个1MB的文件时没有任何问题,但在上传20MB时发现提示
错误日志为: 413 Request Entity Too Large
[error] 24225#0: *44 client intended to send too large body: 20MB, client: x.x.x.x, server: _, request: "POST /phpmyadmin/import.php HTTP/1.1", host: "111com.net", referrer: "https://www.111cn.net /xxxxxxxxxxxxxxxxxx
1.打开nginx.conf并在http{}字段里添加
2.client_max_body_size 64M; #多少M根据实际情况填写
3.# keepalive_timeout 的值最好也修改一下,否则phpmyadmin上传的时候很容易time out
错误日志二 timed out
Nginx错误日志为:upstream timed out (110: Connection timed out) while reading response header from upstream
解决办法为在server字段里修改proxy_read_timeout的值
proxy_connect_timeout 300;
proxy_read_timeout 300;
proxy_send_timeout 300;
相关文章
- poipiku网站如何打开-poipiku官网网页版访问入口 01-06
- uc网盘网页版官方入口-UC网盘网页版快捷登录 01-06
- 全免费影视软件哪个最好用-全免费电视电影软件推荐 01-06
- 悟空浏览器怎样直接打开网页-悟空浏览器一键直达网页技巧分享 01-06
- 谷歌google官方入口-Google官方网站入口 01-06
- 漫画天堂最新版本下载入口-漫画天堂官方正版下载入口汇总 01-06