化妆品2018电商行业发展趋势为什么那么快

1070人阅读
当执行git push 时,报:
error: RPC result=22, HTTP code = 413
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
是因为HTTP上传数据是有限制,最大不超过500M;
解决这个问题最好的办法是 &使用ssh 或者git 协议去上传和下载代码 &目前主流都是 SSH的;
当然如果你执意如此只能使用HTTP的话,解决HTTP的大数据上传报错的办法有俩个(仍然解决不了500M以上的):
一, 增加git http 上传Buff 的大小:
git config http.postBuffer
二,增加服务器端 限制Buff上传的大小:
修改增加 nginx/nginx.conf 中client_max_body_size 的值:
client_max_body_size 500M;
&&相关文章推荐
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:203567次
积分:2977
积分:2977
排名:第11223名
原创:89篇
转载:50篇
评论:27条
(1)(2)(5)(6)(4)(7)(1)(2)(1)(2)(2)(4)(3)(4)(5)(6)(5)(1)(8)(1)(4)(5)(13)(9)(13)(13)(2)(5)(8)Error:&RPC&&result=22,&HTTP&code&=&411
If you attempt to push a large set of changes to a Git repository with HTTP or HTTPS, you may get an error message such as&error:&RPC&&result=22,&HTTP&code&=&411. This is caused by a Git configuration default which limits certain HTTP operations to 1 megabyte. To override this limitation,&&on your cloned repo.
&1. Update git to the latest version (2.7.7, as to now), then,
&2.modify http.postBuffer: git config http.postBuffer &
Views(...) Comments()error: RPC result=22, HTTP code = 413怎么解决
git项目仓库632.97 MiB
总是push不上git.oschina
Counting objects: 21230, done.
Delta compression using up to 3 threads.
Compressing objects: 100% (), done.
Writing objects: 100% (), 632.97 MiB | 9.89 MiB/s, done.
Total 21230 (delta 9495), reused 0 (delta 0)
error: RPC result=22, HTTP code = 413
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date
这种情况怎么解决,已经设置了git config http.postBuffer
修改nginx上传配置:
client_max_body_size 100m;
单文件超过限制
是的,已经解决,使用ssh方式push,用git push origin --all
单个文件限制最大 100M
--- 共有 1 条评论 ---
那我的.a文件200多M,怎么上传?114网址导航

我要回帖

更多关于 电商行业发展前景 的文章

 

随机推荐