码迷,mamicode.com
首页 > Web开发 > 详细

git push报错:error: RPC failed; result=22, HTTP code = 413

时间:2017-03-22 17:42:27      阅读:398      评论:0      收藏:0      [点我收藏+]

标签:mit   制造   git服务器   ati   nginx服务器   bsp   err   limit   efault   

  新项目推送到服务器时报错:

error: RPC failed; result=22, HTTP code = 413| 7.66 MiB/s    
fatal: The remote end hung up unexpectedly
  查了下,属于项目中有大文件,而http推送限制造成的,需要修改服务器配置。因为git服务器是通过nginx做反向代理之后实现的,因此需要修改nginx和appache(git服务器):

1、nginx服务器配置:/etc/nginx/conf.d/default.conf中的server小节加入:client_max_body_size 100m;

2、apache配置:/etc/httpd/conf.d/git.conf中对应Location小节中加入:LimitRequestBody 52428800

git push报错:error: RPC failed; result=22, HTTP code = 413

标签:mit   制造   git服务器   ati   nginx服务器   bsp   err   limit   efault   

原文地址:http://www.cnblogs.com/badwood316/p/6600991.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!