承接上文安装好gitlab
首先查看好gitlab的版本(ps:要启动gitlab)
bash
cat /opt/gitlab/embedded/service/gitlab-rails/VERSION
我的版本是10.0.0
然后安装git
bash
yum install -y git
然后克隆一下汉化的仓库
bash
git clone https://gitlab.com/xhang/gitlab.git
打汉化补丁
bash
yum install -y patch
然后cd到gitlab目录中(在某个目录底下执行这些命令会生成一个文件夹gitlab)
bash
cd gitlab
bash
git diff v10.0.0..v10.0.0-zh > /tmp/10.0.0.diff
bash
gitlab-ctl stop
bash
patch -d /opt/gitlab/embedded/service/gitlab-rails -p1 < /tmp/10.0.0.diff
bash
gitlab-ctl start
就可以了
若是有时候502报错,执行一下命令
bash
gitlab-ctl start
gitlab-ctl reconfigure