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

創(chuàng)新互聯(lián)公司主營(yíng)彭山網(wǎng)站建設(shè)的網(wǎng)絡(luò)公司,主營(yíng)網(wǎng)站建設(shè)方案,成都App定制開發(fā),彭山h5微信小程序定制開發(fā)搭建,彭山網(wǎng)站營(yíng)銷推廣歡迎彭山等地區(qū)企業(yè)咨詢
GitLab有三個(gè)不同的版本可用:Community Edition(CE)、Enterprise Edition(EE)和 GitLab托管版本。其中CE版本是開源免費(fèi)的。EE版本是企業(yè)版,需要付費(fèi)使用的。
環(huán)境
-
Centos8
-
gitlab-ce-13.1.4
推薦cpu核心數(shù)量為4核,推薦內(nèi)存大小為4GB。
安裝GitLab-CE
新建/etc/yum.repos.d/gitlab-ce.repo倉(cāng)庫(kù)文件,然后復(fù)制內(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
配置并啟動(dòng)gitlab
剛安裝完,需要配置一下gitlab。
[root@localhost ~]# gitlab-ctl reconfigure
配置完成之后已經(jīng)啟動(dòng)所有服務(wù)了,已經(jīng)設(shè)置好開機(jī)啟動(dòng)了。
gitlab-ctl的常用的操作:
# 重置應(yīng)用
gitlab-ctl reconfigure
# 啟動(dòng)所有服務(wù)
gitlab-ctl start
# 關(guān)閉所有服務(wù)
gitlab-ctl stop
# 重啟所有服務(wù)
gitlab-ctl restart
# 列出所有服務(wù)
gitlab-ctl service-list
# 查看服務(wù)狀態(tài)
gitlab-ctl status
web界面訪問GitLab
在瀏覽器輸入本機(jī)ip地址,訪問gitlab,第一次訪問需要為管理員設(shè)置密碼: 默認(rèn)的用戶是root,剛設(shè)置好密碼,可以登錄了:
然后就可以創(chuàng)建project了。
總結(jié)
GitLab能夠集成大量的工具,如Slack、Hipchat、LDAP、JIRA、Jenkins、許多類型的鉤子和一個(gè)完整的API。
新聞標(biāo)題:Centos8安裝GitLab-CE具體步驟
文章出自:http://www.fisionsoft.com.cn/article/dhgejcj.html


咨詢
建站咨詢
