天天看点

gitlab安装和汉化

下载源

https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/?C=M&O=A

yum install policycoreutils-python -y

rpm -ivh gitlab安装包

修改访问地址

vi /etc/gitlab/gitlab.rb

vi /var/opt/gitlab/gitlab-rails/etc/gitlab.yml 端口

重启

gitlab-ctl reconfigure

gitlab-ctl restart

汉化

yun install -y git

git clone https://gitlab.com/xhang/gitlab.git

  

gitlab-ctl stop

cd /root/gitlab

比较汉化标签和原标签,导出 patch 用的 diff 文件到/root下

git diff v11.6.10 v11.6.10-zh > ../11.6.10-zh.diff

将10.0.2-zh.diff作为补丁更新到gitlab中

cd ~

yum install patch -y

patch -d /opt/gitlab/embedded/service/gitlab-rails -p1 < 11.1.6-zh.diff

一路回车 覆盖文件

启动gitlab并重新配置gitlab

gitlab-ctl start