Gitlab 10.1.4 (汉化版) for CentOS 7.4安装
                                                            生活随笔
收集整理的這篇文章主要介紹了
                                Gitlab 10.1.4 (汉化版) for CentOS 7.4安装
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.                        
                                
                            
                            
                            源代碼是一個(gè)軟件公司最重要的資產(chǎn)。源代碼的管理經(jīng)歷了中心化的cvs, svn到git的過(guò)程。
 
原先git server采用的是gitolite (https://github.com/sitaramc/gitolite) ,現(xiàn)在已遷移到gitlab。
 
 
 
部署環(huán)境 CentOS 7.4 64位
開始安裝Gitlab v10.1.4 yum install -y curl policycoreutils-python openssh-server openssh-clients 如果服務(wù)器已經(jīng)安裝并運(yùn)行OpenSSH,那么不用執(zhí)行以下命令 systemctl enable sshd systemctl start sshd 如果服務(wù)器已經(jīng)關(guān)閉防火墻或者添加相關(guān)規(guī)則,那么不用執(zhí)行以下命令 firewall-cmd --permanent --add-service=http systemctl reload firewalld 安裝開源郵件服務(wù)器postfix yum install postfixsystemctl enable postfixsystemctl start postfix 向本機(jī)添加gitlab的倉(cāng)庫(kù) curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | bash EXTERNAL_URL="http://gitlab.cssweb.com" yum install -y gitlab-ce 此處把EXTERNAL_URL設(shè)成ip地址或域名,如果沒(méi)有DNS服務(wù)器,記得在自己的電腦中找到hosts文件并添加相關(guān)映射(此處不展開了)。
 
 
 
如果安裝過(guò)程中沒(méi)有配置EXTERNAL_URL, 可以在上述命令執(zhí)行后,編輯/etc/gitlab/gitlab.rb修改配置信息。 配置gitlab gitlab-ctl reconfigure 查看gitlab的版本 rpm -qa | grep gitlab 或者h(yuǎn)ead -1 /opt/gitlab/version-manifest.txt
Gitlab的漢化 停止gitlab gitlab-ctl stop
下載gitlab版本對(duì)應(yīng)的漢化包 git clone https://gitlab.com/xhang/gitlab.git -b v10.1.4-zh cd gitlab 導(dǎo)出patch用的diff文件 git diff v10.1.4 v10.1.4-zh > v10.1.4-zh.diff yum install patch 執(zhí)行以下命令前,可以對(duì)目錄/opt/gitlab/embedded/service/gitlab-rails做一下備份 打補(bǔ)丁 patch -d /opt/gitlab/embedded/service/gitlab-rails -p1 < v10.1.4-zh.diff 重新配置 gitlab-ctl reconfigure 啟動(dòng)gitlab gitlab-ctl restart
訪問(wèn)gitlab
 
 
 
 
 
首次會(huì)要求設(shè)置root用戶的密碼。
 
 
修改密碼后,就可以登錄系統(tǒng)。
 
 
 
 
 
參考資料 https://about.gitlab.com/installation/#centos-7?version=ce
https://gitlab.com/xhang/gitlab https://github.com/marbleqi/gitlab-ce-zh
                            
                        
                        
                        部署環(huán)境 CentOS 7.4 64位
開始安裝Gitlab v10.1.4 yum install -y curl policycoreutils-python openssh-server openssh-clients 如果服務(wù)器已經(jīng)安裝并運(yùn)行OpenSSH,那么不用執(zhí)行以下命令 systemctl enable sshd systemctl start sshd 如果服務(wù)器已經(jīng)關(guān)閉防火墻或者添加相關(guān)規(guī)則,那么不用執(zhí)行以下命令 firewall-cmd --permanent --add-service=http systemctl reload firewalld 安裝開源郵件服務(wù)器postfix yum install postfixsystemctl enable postfixsystemctl start postfix 向本機(jī)添加gitlab的倉(cāng)庫(kù) curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | bash EXTERNAL_URL="http://gitlab.cssweb.com" yum install -y gitlab-ce 此處把EXTERNAL_URL設(shè)成ip地址或域名,如果沒(méi)有DNS服務(wù)器,記得在自己的電腦中找到hosts文件并添加相關(guān)映射(此處不展開了)。
如果安裝過(guò)程中沒(méi)有配置EXTERNAL_URL, 可以在上述命令執(zhí)行后,編輯/etc/gitlab/gitlab.rb修改配置信息。 配置gitlab gitlab-ctl reconfigure 查看gitlab的版本 rpm -qa | grep gitlab 或者h(yuǎn)ead -1 /opt/gitlab/version-manifest.txt
Gitlab的漢化 停止gitlab gitlab-ctl stop
下載gitlab版本對(duì)應(yīng)的漢化包 git clone https://gitlab.com/xhang/gitlab.git -b v10.1.4-zh cd gitlab 導(dǎo)出patch用的diff文件 git diff v10.1.4 v10.1.4-zh > v10.1.4-zh.diff yum install patch 執(zhí)行以下命令前,可以對(duì)目錄/opt/gitlab/embedded/service/gitlab-rails做一下備份 打補(bǔ)丁 patch -d /opt/gitlab/embedded/service/gitlab-rails -p1 < v10.1.4-zh.diff 重新配置 gitlab-ctl reconfigure 啟動(dòng)gitlab gitlab-ctl restart
訪問(wèn)gitlab
首次會(huì)要求設(shè)置root用戶的密碼。
修改密碼后,就可以登錄系統(tǒng)。
參考資料 https://about.gitlab.com/installation/#centos-7?version=ce
https://gitlab.com/xhang/gitlab https://github.com/marbleqi/gitlab-ce-zh
總結(jié)
以上是生活随笔為你收集整理的Gitlab 10.1.4 (汉化版) for CentOS 7.4安装的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
 
                            
                        - 上一篇: ECOMP已经开源成功,这次ATT准备推
- 下一篇: Gitlab创建第一个项目
