CentOS 7 安裝GitLab

CentOS 7 安裝GitLab

GitLab是一個(gè)利用Ruby on Rails開(kāi)發(fā)的開(kāi)源應(yīng)用程序,實(shí)現(xiàn)一個(gè)自托管的Git項(xiàng)目倉(cāng)庫(kù),可通過(guò)Web界面進(jìn)行訪問(wèn)公開(kāi)的或者私人項(xiàng)目.
Gitlab中文網(wǎng):https://www.gitlab.com.cn/
Gitlab官網(wǎng):https://about.gitlab.com/
Gitlab官方文檔:https://docs.gitlab.com/ce/README.html

  • CentOS7配置SSH

http://blog.csdn.net/wh211212/article/details/52932776

  • CentOS7配置SMTP

http://blog.csdn.net/wh211212/article/details/53040620

安裝Gitlab

參考鏈接:https://www.gitlab.com.cn/downloads/#centos7

  • 安裝配置依賴項(xiàng)

使用Postfix來(lái)發(fā)送郵件,在安裝期間請(qǐng)選擇'Internet Site'. 您也可以用sendmai或者 配置SMTP服務(wù) 并 使用SMTP發(fā)送郵件.在 Centos 6 和 7 系統(tǒng)上, 下面的命令將在系統(tǒng)防火墻里面開(kāi)放HTTP和SSH端口.(參考上面鏈接和下面操作)

sudo yum install curl policycoreutils openssh-server openssh-clients
sudo systemctl enable sshd
sudo systemctl start sshd
sudo yum install postfix
sudo systemctl enable postfix
sudo systemctl start postfix
sudo firewall-cmd --permanent --add-service=http
sudo systemctl reload firewalld
  • 添加GitLab倉(cāng)庫(kù),并安裝到服務(wù)器上
curl -sS http://packages.gitlab.cc/install/gitlab-ce/script.rpm.sh | sudo bash
sudo yum install gitlab-ce
# 手動(dòng)下載rpm包安裝
curl -LJO https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-XXX.rpm
rpm -i gitlab-ce-XXX.rpm
  • 啟動(dòng)GitLab
sudo gitlab-ctl reconfigure
  • 使用瀏覽器訪問(wèn)GitLab

首次訪問(wèn)GitLab,系統(tǒng)會(huì)讓你重新設(shè)置管理員的密碼,設(shè)置成功后會(huì)返回登錄界面.默認(rèn)的管理員賬號(hào)是root,如果你想更改默認(rèn)管理員賬號(hào),請(qǐng)輸入上面設(shè)置的新密碼登錄系統(tǒng)后修改帳號(hào)名.

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容