GitLab汉化版搭建

news/2024/7/7 10:34:59

1 环境安装

yum -y install lokkit
yum -y install curl openssh-server openssh-clients postfix cronie 
service postfix start 
chkconfig postfix on 
lokkit -s http -s ssh

2 使用rpm包安装

rpm -ivh https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-10.4.4-ce.0.el7.x86_64.rpme

在这里插入图片描述

3 修改配置

vim  /etc/gitlab/gitlab.rb

#访问url
external_url 'http://192.168.38.45'

#防止吃大量内存
unicorn['worker_processes'] = 2
postgresql['max_worker_processes'] = 2
nginx['worker_processes'] = 2

在这里插入图片描述

4 重置并启动GitLab

#输入命令,自动配置
gitlab-ctl reconfigure
#查看状态
gitlab-ctl status
#重启
gitlab-ctl restart

在这里插入图片描述

5 访问url

#设置新密码
http://192.168.38.45/

在这里插入图片描述

6 汉化

6.1 安装git

yum -y install git
#查看版本
git version

在这里插入图片描述

6.2 打汉化补丁

git clone https://gitlab.com/xhang/gitlab.git
cd gitlab    
#查看版本
cat /opt/gitlab/embedded/service/gitlab-rails/VERSION
#查看全部分支
git branch -a
#生成补丁包
git diff remotes/origin/10-4-stable remotes/origin/10-4-stable-zh > /tmp/10.4.4-zh.diff
#停止服务器
gitlab-ctl stop
#打补丁
patch -d /opt/gitlab/embedded/service/gitlab-rails -p1 < /tmp/10.4.4-zh.diff
#启动和重新配置
gitlab-ctl start
gitlab-ctl reconfigure

6.3 再次访问

在这里插入图片描述


http://www.niftyadmin.cn/n/4556747.html

相关文章

2018-2019-1 20189221 《深入理解计算机系统》第 3 周学习总结

2018-2019-1 20189221 《深入理解计算机系统》第 3 周学习总结 第 3 章 程序的机器级表示 计算机执行机器代码,用字节序列编码低级的操作,包括处理数据、管理内存、读写存储设备上的数据,以及利用网络通信。编译器基于编程语言的规则、目标机器的指令集和操作系统遵循的惯例,经…

Nexus 搭建及基础使用

1 解压 tar -zxvf nexus-3.19.1-01-unix.tar.gz2 启动 cd /usr/local/nexus-3.19.1-01/bin ./nexus start3 删除刚才的进程 4 新建账户 useradd nexus chown -R nexus:nexus /usr/local/nexus-3.19.1-01/5 切换用户 su nexus cd /usr/local/nexus-3.19.1-01/bin #启动 .…

以前我没学过编程 请问编程从那里学起

fromuid29811 ||| C语言 ||| 认为自己逻辑性和数学啊什么的不好的 .net 在学习C# 而后学习SQL数据库 这没错 应该先学C 不要一下学多种语言就行 ||| 我个人认为 那些上机就很快啦 编程&#xff1d;数据结构&#xff0b;算法这是真理 真正的高手是不在乎手里拿的是什么武器的 JA…

微信小程序二维码识别

目前市场上二维码识别的软件或者网站越来越多&#xff0c;可是真正方便&#xff0c;无广告的却少之很少。 于是&#xff0c;自己突发奇想做了一个微信二维码识别的小程序。 包含功能&#xff1a; 1、识别二维码 ①普通二维码 ②条形码 ③只是复制解析出来的数据 2、生成二维码 …

【论文阅读】Dynamic Graph CNN for Learning on Point Clouds

论文题目: Dynamic Graph CNN for Learning on Point Clouds (用于点云学习的动态图卷积神经网络) 论文作者: YUE WANG, 麻省理工学院; YONGBIN SUN, 麻省理工学院; ZIWEI LIU, 加州大学伯克利分校/ICSI; SANJAY E. SARMA, 麻省理工学院; MICHAEL M. BRONSTEIN, 伦敦帝国理工…

Sonarqube安装及基本使用

1 需要环境 2 解压包 #解压 unzip sonarqube-6.7.4.zip3 创建数据库 4 修改配置文件 cd /usr/local/sonarqube-6.7.4/conf vim sonar.propertiessonar.jdbc.usernameroot sonar.jdbc.password123456 sonar.jdbc.urljdbc:mysql://192.168.38.45:3306/sonar?useUnicodetrue&am…

Redis + keepalived 高可用行配置检测脚本

Redis 在生产配置中&#xff1b;除redis集群、哨兵模式之外&#xff1b;主从模式还是比较普遍的。 配置 redis 多主从&#xff1b;由 keepalived 做 VIP 地址漂移。可以实现redis的高可用性。 keepalived 配置示例&#xff1b;&#xff08;master 主节点配置&#xff0c;backup…

.net里的timer

}} ElapsedEventArgs e) { Console.WriteLine("The Elapsed event was raised at {0}" using System;using System.Timers;//在这个空间下面public class Timer1{ private static System.Timers.Timer aTimer; public static void Main() { aTimer new System.Timer…