赞
踩
关于git push中报错处理
Enumerating objects: 410, done.
Counting objects: 100% (410/410), done.
Delta compression using up to 6 threads
Compressing objects: 100% (220/220), done.
Writing objects: 100% (227/227), 35.88 MiB | 10.00 MiB/s, done.
Total 227 (delta 151), reused 1 (delta 0)
error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly
Everything up-to-date
试着查看nginx的报错信息
这里明显看到了nginx的报错信息,查到了问题的根结所在,需对nginx进行添加
client_max_body_size的配置,详见如下所示:
cat /etc/nginx/conf.d/git.conf
... ...
server {
listen 80;
client_max_body_size 1024m; #添加此行内容,大小可自行根据实际情况设定
... ...
server {
listen 443;
client_max_body_size 1024m; #添加此行内容,大小可自行根据实际情况设定
... ...
注:只是配置80服务,而没有配置443服务,可把server的443配置去掉
… …
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。