新聞中心
GitLab 是 Ruby 開發(fā)的自托管的 Git 項目倉庫,可通過Web界面進行訪問公開的或者私人項目,本篇文章重點為大家講解一下Centos8安裝GitLab-CE具體步驟。

創(chuàng)新互聯(lián)公司主營彭山網(wǎng)站建設的網(wǎng)絡公司,主營網(wǎng)站建設方案,成都App定制開發(fā),彭山h5微信小程序定制開發(fā)搭建,彭山網(wǎng)站營銷推廣歡迎彭山等地區(qū)企業(yè)咨詢
GitLab有三個不同的版本可用:Community Edition(CE)、Enterprise Edition(EE)和 GitLab托管版本。其中CE版本是開源免費的。EE版本是企業(yè)版,需要付費使用的。
環(huán)境
-
Centos8
-
gitlab-ce-13.1.4
推薦cpu核心數(shù)量為4核,推薦內(nèi)存大小為4GB。
安裝GitLab-CE
新建/etc/yum.repos.d/gitlab-ce.repo倉庫文件,然后復制內(nèi)容到文件里。
[root@localhost ~]# touch /etc/yum.repos.d/gitlab-ce.repo
[gitlab-ce] name=Gitlab CE Repository baseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el$releasever/ gpgcheck=0 enabled=1
更新yum緩存,然后安裝gitlab-ce:
[root@localhost ~]# yum makecache
[root@localhost ~]# yum -y install gitlab-ce
安裝完成。
防火墻中開放端口
[root@localhost ~]# firewall-cmd --permanent --add-service=http
success
[root@localhost ~]# firewall-cmd --permanent --add-service=https
success
[root@localhost ~]# firewall-cmd --reload
success
配置并啟動gitlab
剛安裝完,需要配置一下gitlab。
[root@localhost ~]# gitlab-ctl reconfigure
配置完成之后已經(jīng)啟動所有服務了,已經(jīng)設置好開機啟動了。
gitlab-ctl的常用的操作:
# 重置應用
gitlab-ctl reconfigure
# 啟動所有服務
gitlab-ctl start
# 關閉所有服務
gitlab-ctl stop
# 重啟所有服務
gitlab-ctl restart
# 列出所有服務
gitlab-ctl service-list
# 查看服務狀態(tài)
gitlab-ctl status
web界面訪問GitLab
在瀏覽器輸入本機ip地址,訪問gitlab,第一次訪問需要為管理員設置密碼: 默認的用戶是root,剛設置好密碼,可以登錄了:
然后就可以創(chuàng)建project了。
總結
GitLab能夠集成大量的工具,如Slack、Hipchat、LDAP、JIRA、Jenkins、許多類型的鉤子和一個完整的API。
當前標題:Centos8安裝GitLab-CE具體步驟
地址分享:http://www.dlmjj.cn/article/dhgejcj.html


咨詢
建站咨詢
