CentOS7.4安装Gitlab10.5.1及汉化

简介:

之前写过Centos6.9下安装Gitlab,总体来说Centos6和Centos7环境安装Gitlab区别不大,本文以Centos7.4为例来安装Gitlab。

1、添加gitlab源

vi /etc/yum.repos.d/gitlab-ce.repo

[gitlab-ce]
name=gitlab-ce
baseurl=http://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el$releasever
gpgcheck=0
enabled=1

2、安装gitlab
yum -y install openssh-server cronie git wget patch gitlab-ce-10.5.1

3、初始化gitlab
gitlab-ctl reconfigure

PS:可以在/etc/gitblab/gitlab.rb修改external_url,改成自己的url

4、查看服务

gitlab-ctl status

5、重启、停止或启动服务
gitlab-ctl restart/stop/start

安装完成,可以通过浏览器访问IP测试(如访问不了,请检查iptables、selinux)

http://IP

 

gitlab汉化

Gitlab中文社区版地址:https://gitlab.com/xhang/gitlab

1、克隆版本库(时间会很长,可以考虑挂代理,或者用自己的海外服务器中转下)

cd /usr/src/
git clone https://gitlab.com/xhang/gitlab.git

2、确定当前Gitlab版本
cat /opt/gitlab/embedded/service/gitlab-rails/VERSION

3、比较原标签和汉化标签,导出patch用的diff文件
cd gitlab
git diff v10.5.1 v10.5.1-zh> ../10.5.1-zh.diff

4、先停止gitlab
gitlab-ctl stop

5、上传10.5.1-zh.diff文件到服务器
patch -d /opt/gitlab/embedded/service/gitlab-rails -p1 < ../10.5.1-zh.diff

6、然后启动gitlab
gitlab-ctl start

此时访问 http://IP就是全中文页面了(启动后马上打开页面可能会显示502,稍等几秒刷新就好了)

目录
相关文章
|
7天前
|
Unix Linux 开发工具
centos的官网下载和vm16虚拟机安装centos8【保姆级教程图解】
本文详细介绍了如何在官网下载CentOS 8以及在VMware Workstation Pro 16虚拟机上安装CentOS 8的步骤,包括可能出现的问题和解决方案,如vcpu-0错误的处理方法。
centos的官网下载和vm16虚拟机安装centos8【保姆级教程图解】
|
7天前
|
消息中间件 Linux
centos7安装rabbitmq
centos7安装rabbitmq
|
7天前
|
Linux 虚拟化 Windows
完美解决:重新安装VMware Tools灰色。以及共享文件夹的创建(centos8)
这篇文章提供了解决VMware Tools无法重新安装(显示为灰色)问题的步骤,并介绍了如何在CentOS 8上创建和配置VMware共享文件夹。
完美解决:重新安装VMware Tools灰色。以及共享文件夹的创建(centos8)
|
7天前
|
Docker 容器
centos7.3之安装docker
centos7.3之安装docker
|
8天前
|
NoSQL Linux Redis
linux之centos安装redis
linux之centos安装redis
|
3天前
|
缓存 Linux 开发工具
CentOS7 安装KDE报错的解决方法:Loaded plugins:fastestmirror,langpacks There is no installed group.
CentOS7 安装KDE报错的解决方法:Loaded plugins:fastestmirror,langpacks There is no installed group.
10 0
|
3天前
|
安全 测试技术 Linux
CentOS7 安装vulhub漏洞测试环境
CentOS7 安装vulhub漏洞测试环境
|
6天前
|
Linux
centos 安装etcd|待优化
centos 安装etcd|待优化
|
8天前
|
Linux Python
Linux之centos安装clinkhouse以及python如何连接
Linux之centos安装clinkhouse以及python如何连接
|
8天前
|
Linux
linux之centos安装dataease数据报表工具
linux之centos安装dataease数据报表工具
下一篇
无影云桌面