首页 > 其他 > 详细

Centos7.8Gitlab安装及配置

时间:2020-10-12 20:10:59      阅读:41      评论:0      收藏:0      [点我收藏+]
操作系统:CentOS Linux release 7.8.2003 (Core)

gitlab版本:gitlab-ce-12.3.9-ce

下载镜像

清华大学开源软件镜像站

https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-12.3.9-ce.0.el7.x86_64.rpm

Gitlab安装及配置

安装

yum install -y gitlab-ce-12.3.9-ce.0.el7.x86_64.rpm  

修改配置文件

gitlab.rb external_url ‘http://gitlab.example.com‘ 
grep -n ‘^‘[a-Z] /etc/gitlab/gitlab.rb  
13:external_url ‘http://172.16.8.200‘ 

重新配置

gitlab  gitlab-ctl reconfigure

重新启动gitlab

gitlab-ctl  start 

gitlab汉化包下载地址

 wget https://gitlab.com/xhang/gitlab/-/archive/12-3-stable-zh/gitlab-12-3-stable-zh.tar.gz

停止gitlab服务

gitlab-ctl  stop

复制到汉化包到/opt/gitlab/embedded/service/gitlab-rails/

\cp  -r gitlab-12-3-stable-zh/*   /opt/gitlab/embedded/service/gitlab-rails/

重新启动gitlab

gitlab-ctl  start 

登录gitlab,进行汉化配置

技术分享图片
默认语言修改为简体中文
技术分享图片
汉化完成
技术分享图片

Centos7.8Gitlab安装及配置

原文:https://blog.51cto.com/10880347/2541354

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!