说明:gitlab中文社区版的项目,v7-v8.8是由Larry Li发起的“GitLab 中文社区版项目”(https://gitlab.com/larryli/gitlab),从 v8.9 之后,@xhang 开始继续该汉化项目 (https://gitlab.com/xhang/gitlab)。
安装git克隆获取汉化版本库下载想要的分支:
git clone https://gitlab.com/xhang/gitlab.git -b v11.1.2-zh
查看该汉化补丁的版本
cat gitlab/VERSION
https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-11.1.2-ce.0.el7.x86_64.rpm
安装必备包:yum install -y curl openssh-server openssh-clients postfix cronie policycoreutils-pythonsystemctl start postfixsystemctl enable postfix安装:yum install gitlab-ce-11.1.2-ce.0.el7.x86_64.rpm --nogpgcheck或rpm -ivh gitlab-ce-11.1.2-ce.0.el7.x86_64.rpm(优先)成功后:修改配置文件gitlab.rbvim /etc/gitlab/gitlab.rb将external_url变量的地址修改为gitlab所在centos的ip地址。external_url 'http://gitlab.example.com' 》》》 external_url 'http://10.92.190.127'gitlab-ctl reconfigure
进入汉化库,我的是在window上克隆下来的,直接运行:git diff v11.1.2 v11.1.2-zh > ../11.1.2-zh.diff然后把生成的文件传到服务器上
将11.1.2-zh.diff作为补丁更新到gitlab中yum install patch -ypatch -f -d /opt/gitlab/embedded/service/gitlab-rails -p1 < 11.1.2-zh.diff
gitlab-ctl startgitlab-ctl reconfigure
管理员账号登录的用户名:root设置管理员密码:浏览器访问gitlab所在的IP,直接写新密码
gitlab-ctl stoprpm -e gitlab-ceps -ef|grep gitlab然后kill掉第一个删除所有gitlab文件find / -name gitlab|xargs rm -rf 删除所有包含gitlab的文件及目录删除gitlab-ctl uninstall时自动在root下备份的配置文件
在卸载gitlab然后再次安装执行sudo gitlab-ctl reconfigure的时候往往会出现:ruby_block[supervise_redis_sleep] action run,会一直卡无法往下进行!
解决方案:
1、按住CTRL+C强制结束;
2、运行:sudo systemctl restart gitlab-runsvdir;
3、再次执行:sudo gitlab-ctl reconfigure
https://files.cnblogs.com/files/CGCong/11.10.4-zh.rar
转载于:https://www.cnblogs.com/CGCong/p/9473197.html
