gitlab汉化

承接上文安装好gitlab

首先查看好gitlab的版本(ps:要启动gitlab)

bash 复制代码
cat /opt/gitlab/embedded/service/gitlab-rails/VERSION

我的版本是10.0.0

然后安装git

bash 复制代码
yum install -y git

然后克隆一下汉化的仓库

bash 复制代码
git clone https://gitlab.com/xhang/gitlab.git

打汉化补丁

bash 复制代码
yum install -y patch 

然后cd到gitlab目录中(在某个目录底下执行这些命令会生成一个文件夹gitlab)

bash 复制代码
cd gitlab 
bash 复制代码
git diff v10.0.0..v10.0.0-zh > /tmp/10.0.0.diff
bash 复制代码
gitlab-ctl stop
bash 复制代码
patch -d /opt/gitlab/embedded/service/gitlab-rails -p1 < /tmp/10.0.0.diff
bash 复制代码
gitlab-ctl start

就可以了

若是有时候502报错,执行一下命令

bash 复制代码
gitlab-ctl start 
gitlab-ctl reconfigure
相关推荐
lin张3 分钟前
【无标题】
linux·运维
小猫挖掘机(绝版)24 分钟前
Ubuntu20.04安装ROS Noetic
linux·c++·ubuntu·无人机
dazhong201225 分钟前
分布式对象存储系统 Minio 之 Centos 环境安装
linux·分布式·centos
一心09233 分钟前
SQL(window)日志在linux 下查看
linux·数据库·windows·sql·日志
一曲_1 小时前
用DeepSeek、豆包管理服务器配置指南 Wisdom SSH 让AI运维再升级!
运维
洛小豆1 小时前
Ubuntu 网络配置演进:从 20.04 到 24.04 的静态 IP 设置指南
linux·后端·ubuntu
zzu123zsw1 小时前
第13章 Jenkins性能优化
运维·性能优化·jenkins
永日456701 小时前
学习日记-spring-day47-9.1
服务器·学习·spring
the sun341 小时前
如何使用VMware创建一台Ubuntu机器
linux·运维·ubuntu
陌上花开缓缓归以2 小时前
linux flash mtd驱动分析
linux