1.下载rpm安装包并安装
curl -LJO https://mirror.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-8.5.4-ce.0.el7.x86_64.rpm
rpm -i gitlab-ce-8.5.4-ce.0.el7.x86_64.rpm
2.安装包自带nginx 我们停掉 用本机已安装的,gitlab的配置文件在/etc/gitlab/gitlab.rb下,把nginx设置为false即可,然后再配置自己的nginx host
nginx['enable'] = false
3.gitlab配置文件修改访问host地址
external_url = 'http://www.xxx.com'
4.汉化
git clone https://gitlab.com/larryli/gitlab.git
确定当前gitlab版本
sudo cat /opt/gitlab/embedded/service/gitlab-rails/VERSION
下载后进入刚刚checkout的目录 然后做diff 比如版本是8.5
git diff origin/8-5-stable origin/8-5-zh > /tmp/8.5.diff
停止gitlab 合并
sudo gitlab-ctl stop
sudo patch -d /opt/gitlab/embedded/service/gitlab-rails -p1 < /tmp/8.5.diff