2016-06-27 99 views
1

我是GitLab和CentOS的新手。 我試圖通過以下官方鏈接在CentOS 6.5安裝GitLab: https://about.gitlab.com/downloads/#centos6在CentOS 6.5上安裝GitLab:捲曲錯誤

雖然下面的步驟執行:

curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash

我收到以下錯誤:

Detected operating system as centos/6. 
Checking for curl... 
Detected curl... 
Downloading repository file: https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/config_file.repo?os=centos&dist=6&source=script 
curl: (6) Couldn't resolve host 'packages.gitlab.com' 

Unable to run: 
    curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/config_file.repo?os=centos&dist=6&source=script 

Double check your curl installation and try again. 

我也嘗試使用代理設置的curl命令,仍然得到相同的錯誤。 任何幫助非常感謝!

+0

解決方法是隻需下載軟件包並將其安裝。該bash腳本僅確定您的操作系統,然後下載並安裝適當的軟件包。如果你願意,你一定可以自己做。 –

回答

0

我面臨兩個問題,同時在CentOS安裝GitLab:

1)代理問題:錯誤消息閱讀:

Couldn't resolve host 'packages.gitlab.com'

所以我安裝HTTPS代理如下

export https_proxy=username:[email protected]:port

2)根權威問題:因爲我通過非roo安裝GitLab t用戶和GitLab在/etc/repos.d下安裝了軟件包,該軟件包由root用戶擁有,安裝失敗。因此我通過root插入並安裝它。

謝謝!