1. 程式人生 > >專案案例之GitLab企業級程式碼管理倉庫(施工中)

專案案例之GitLab企業級程式碼管理倉庫(施工中)

一.安項GitLab

 主機名 IP 備註 特殊要求
 git01    GIT客戶端  無
 girlab  192.168.200.140  GITLAB服務端  記憶體2G

 

 

 

 

 

GitLab國內源下載地址:https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7

 1 ##初始環境
 2 [[email protected] ~]# cat /etc/redhat-release 
 3 CentOS Linux release 7.5.1804 (Core)
 4 [[email protected] ~]# uname -r
 5 3.10.0-862.el7.x86_64
 6 [[email protected] ~]# echo "git lab 127.0.0.1" >>/etc/hosts
 7 [[email protected] ~]# tail -1 /etc/hosts
 8 git lab 127.0
.0.1 9 [[email protected] ~]# ls 10 anaconda-ks.cfg 11 gitlab-11-2-stable-zh.tar.gz #GITLAB 漢化包 12 gitlab-ce-11.2.3-ce.0.el7.x86_64.rpm #GITLAB 安裝包 13 14 [[email protected] ~]# yum localinstall gitlab-ce-11.2.3-ce.0.el 15 7.x86_64.rpm -y 16 17 重要說明:localinstall 利用yum 光碟源裝依賴包
18 #初始化GitLab 只需執行一次 19 [[email protected] ~]# gitlab-ctl reconfigure 20 #檢視gitlab啟動狀態 21 [[email protected] ~]# gitlab-ctl status 22 run: alertmanager: (pid 13022) 185s; run: log: (pid 13048) 183s 23 run: gitaly: (pid 12859) 201s; run: log: (pid 12871) 200s 24 run: gitlab-monitor: (pid 12990) 186s; run: log: (pid 13042) 184s 25 run: gitlab-workhorse: (pid 12844) 201s; run: log: (pid 12850) 20 26 1srun: logrotate: (pid 12172) 263s; run: log: (pid 12881) 200s 27 run: nginx: (pid 12118) 269s; run: log: (pid 12852) 201s 28 run: node-exporter: (pid 12332) 251s; run: log: (pid 12883) 199s 29 run: postgres-exporter: (pid 13037) 184s; run: log: (pid 13045) 1 30 84srun: postgresql: (pid 11641) 324s; run: log: (pid 12869) 200s 31 run: prometheus: (pid 13000) 185s; run: log: (pid 13046) 184s 32 run: redis: (pid 11512) 330s; run: log: (pid 12834) 201s 33 run: redis-exporter: (pid 12553) 239s; run: log: (pid 12993) 185s 34 run: sidekiq: (pid 11993) 281s; run: log: (pid 12870) 200s 35 run: unicorn: (pid 11926) 287s; run: log: (pid 12837) 201s 36 37 ##檢視GitLab版本號 38 [[email protected] ~]# cat /opt/gitlab/embedded/service/gitlab-r 39 ails/VERSION 11.2.3

 

宿主機輸入http://IP地址就可以訪問了

 

密碼最少為8位

登陸管理員賬號 : root  密碼:66666666

登陸後,我們就可以選擇如下功能使用了