一、环境准备
1.1、下载wget
1 | yum install -y vim |
1.2、关闭防火墙
1 | service iptables stop |
二、获取GitLab汉化包(要部署非汉化版,可以跳过这一块内容)
2.1、安装Git
1 | yum install -y git |
2.2、克隆获取汉化版本库
1 | cd /usr/local |
三、部署社区版GitLab
3.1、安装GitLab的依赖项
1 | yum -y install policycoreutils openssh-server openssh-clients postfix cronie policycoreutils-python |
3.2、启动postfix,并设置为开机启动
1 | service postfix start |
3.3、安装rpm包
1 | cd /usr/local |
3.4、修改配置文件gitlab.rb
1 | vim /etc/gitlab/gitlab.rb |

因为修改了配置文件,故需要重新加载配置内容。
1 | gitlab-ctl reconfigure |
四、覆盖汉化包
4.1、停止GitLab服务
1 | gitlab-ctl stop |
4.2、比较汉化标签和原标签,导出 patch 用的 diff 文件到/root下
1 | cd /usr/local/gitlab |
4.3、将10.0.2-zh.diff作为补丁更新到GitLab中
1 | cd /usr/local |
- 本文作者: 試毅-思伟
- 本文链接: https://joeybling.github.io/2018/06/04/Linux搭建GitLab并汉化/
- 版权声明: 本博客所有文章除特别声明外,均采用 Apache License 2.0 许可协议。转载请注明出处!

