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.rpm2.安装包自带nginx 我们停掉 用本机已安装的,gitlab的配置文件在/etc/gitlab/gitlab.rb下,把nginx设置为false即可,然后再配置自己的nginx host
nginx['enable'] = false3.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
本文档详细介绍了如何在CentOS 7上通过RPM包安装GitLab,并提供了具体的步骤来实现GitLab的汉化。包括下载安装包、配置Nginx、修改访问地址及汉化过程。
1502

被折叠的 条评论
为什么被折叠?



