1.下載gitlab安裝包,而後安裝python
wget --content-disposition https://packages.gitlab.com/gitlab/gitlab-ce/packages/el/7/gitlab-ce-10.8.4-ce.0.el7.x86_64.rpm/download.rpm
2.下載安裝pythongit
yum install policycoreutils-python
3.安裝gitlabweb
rpm -ivh gitlab-ce-10.8.4-ce.0.el7.x86_64.rpm
4.修改配置文件vim
將external_url變量的地址修改成gitlab所在centos的ip地址(或者域名)centos
vim /etc/gitlab/gitlab.rb
5.使配置生效並啓動GitLab瀏覽器
gitlab-ctl reconfigure
gitlab-ctl restart
在瀏覽器輸入ip:端口號便可訪問GitLab web頁面,輸入密碼後進入系統。若是不須要漢化,至此已安裝完成(若是須要郵件服務 還需修改配置文件)gitlab
一、安裝giturl
yum install -y git
2.克隆漢化補丁倉庫spa
git clone https://gitlab.com/xhang/gitlab.git
3.查看當前gitlab版本而且獲取對應版本的中文補丁3d
head -1 /opt/gitlab/version-manifest.txt
cd gitlab
git diff v10.8.4 v10.8.4-zh > ../v10.8.4-zh.diff
4.將中文補丁導入gitlab
gitlab-ctl stop
patch -d /opt/gitlab/embedded/service/gitlab-rails -p1 < ../v10.8.4-zh.diff #一路回車知道完成
5.從新配置並啓動
gitlab-ctl reconfigure
gitlab-ctl start