CentOS7.5安装GitLab及汉化 - wintercloud - 博客园
- 获取链接
- X
- 电子邮件
- 其他应用
CentOS7.5安装GitLab及汉化 - wintercloud - 博客园
Tags: published
January 06, 2020 at 10:06PM
Open in Evernote
一、GitLab英文版安装
1.下载gitlab安装包,然后安装
1
|
wget --content-disposition https: //packages.gitlab.com/gitlab/gitlab-ce/packages/el/7/gitlab-ce-10.8.4-ce.0.el7.x86_64.rpm/download.rpm |
2.下载安装python
1
|
yum install policycoreutils-python |
3.安装gitlab
1
|
rpm -ivh gitlab-ce-10.8.4-ce.0.el7.x86_64.rpm |
4.修改配置文件
将external_url变量的地址修改为gitlab所在centos的ip地址(或者域名)
1
|
vim /etc/gitlab/gitlab.rb |
5.使配置生效并启动GitLab
1
|
gitlab-ctl reconfigure |
1
|
gitlab-ctl restart |
在浏览器输入ip:端口号即可访问GitLab web页面,输入密码后进入系统。如果不需要汉化,至此已安装完成(如果需要邮件服务 还需修改配置文件)
二、 GitLab汉化
1、安装git
1
|
yum install -y git |
2.克隆汉化补丁仓库
1
|
git clone https: //gitlab.com/xhang/gitlab.git |
3.查看当前gitlab版本并且获取对应版本的中文补丁
1
|
head -1 /opt/gitlab/version-manifest.txt |
1
|
cd gitlab |
1
|
git diff v10.8.4 v10.8.4-zh > ../v10.8.4-zh.diff |
4.将中文补丁导入gitlab
1
|
gitlab-ctl stop |
1
|
patch -d /opt/gitlab/embedded/service/gitlab-rails -p1 < ../v10.8.4-zh.diff #一路回车知道完成 |
5.重新配置并启动
1
|
gitlab-ctl reconfigure |
1
|
gitlab-ctl start |
Tags: published
January 06, 2020 at 10:06PM
Open in Evernote
评论
发表评论