http方式克隆报错:
[root@HADOOP-213 ~]# git clone http://10.217.55.216/test/test.git Initialized empty Git repository in /root/test/.git/ fatal: protocol error: bad line length character: 135 fatal: The remote end hung up unexpectedly
原因是yum直接安装的epel源nginx是1.0.15版本的,升级到新版本nginx解决。
wget http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm [root@HADOOP-216 gitlab]# rpm -vih nginx-release-centos-6-0.el6.ngx.noarch.rpm ... 解决依赖关系 --> 执行事务检查 ---> Package nginx.x86_64 0:1.6.2-1.el6.ngx will be 安装 --> 完成依赖关系计算 ..... 完毕!
复制gitlab配置文件
[root@HADOOP-216 conf.d]# mv default.conf default.conf.bak [root@HADOOP-216 conf.d]# mv default.conf.rpmsave default.conf [root@HADOOP-216 conf.d]# /etc/init.d/nginx restart
clone成功
[root@HADOOP-213 ~]# git clone http://10.217.55.216/test/autoticket.git Initialized empty Git repository in /root/autoticket/.git/ remote: Counting objects: 32, done. remote: Compressing objects: 100% (31/31), done. remote: Total 32 (delta 14), reused 0 (delta 0) Unpacking objects: 100% (32/32), done.
参考资料
[1]. gitlab迁移小记 http://www.linuxyan.com/web-server/398.html
发表回复