歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> 重新安裝的GiLab5.4 clone問題

重新安裝的GiLab5.4 clone問題

日期:2017/2/28 14:44:33   编辑:Linux教程

重新安裝了GitLab5.4 發現和升級過來的5.4不大一樣( GitLab遷移 見 http://www.linuxidc.com/Linux/2013-08/88839.htm ),很奇怪。

從舊的GitLab遷移代碼過來後,發現git clone被拒絕。查了一下原因,應該是gitlab-shell的配置問題:

首先把config.yml中的http修改為https

# Url to gitlab instance. Used for api calls. Should be ends with slash.
gitlab_url: "https://localhost/"

然後把self_signed_cert設置為true

self_signed_cert: true

之後在/home/git/gitlab目錄下運行檢測命令:

sudo -u git -H /home/git/gitlab-shell/bin/check

看到下面的通過信息就行。

Check GitLab API access: OK
Check directories and files:
/home/git/repositories: OK
/home/git/.ssh/authorized_keys: OK
You have new mail in /var/mail/root

再次clone,成功。

相關閱讀:GitLab 5.3 升級注意事項 http://www.linuxidc.com/Linux/2013-06/86473.htm

GitLab 的詳細介紹:請點這裡
GitLab 的下載地址:請點這裡

Copyright © Linux教程網 All Rights Reserved