1、下载rpm安装包

https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-8.8.5-ce.1.el7.x86_64.rpm

可以自己去https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7自行选择喜欢的版本。

2、安装gitlab-ce

rpm -ivh gitlab-ce-8.8.5-ce.1.el7.x86_64.rpm

3、修改gitlab配置

vim /etc/gitlab/gitlab.rb

把external_url 修改为你自己的服务器ip

4、运行命令

gitlab-ctl reconfigure

5、汉化

git clone https://git.oschina.net/qiai365/gitlab-L-zh.git

cd gitlab-L-zh

git checkout -b 8-8-zh origin/8-8-zh

cp -r /opt/gitlab/embedded/service/gitlab-rails{,.ori}

gitlab-ctl stop

yes|cp -fr ./gitlab-L-zh/* /opt/gitlab/embedded/service/gitlab-rails/

6、启动gitlab

gitlab-ctl start

7、服务器上已有nginx占用了80端口的问题

可以使用另外一个端口,vim /etc/gitlab/gitlab.rb

enxternal_url 'http://192.168.0.4:8090'

nginx['listen_addresses'] = ["0.0.0.0", "[::]"]
nginx['listen_port'] = 8090

然后gitlab-ctl reconfigure && gitlab-ctl restart

其他注意事项:

1、服务器内存默认必须大于2G,好像是空闲内存要大于2G,要不ruby的服务器启动不了。暂时不知道怎么改小,如有解决方法欢迎分享。

2、502的问题,出现可能性非常大,一个原因是服务器空闲内存不足2G;gitlab-ctl start的时候某个进程不能启动,如果是这个,可以使用gitlab-ctl tail xxx查看log,xxx是那个进程名称。

3、服务器刚启动的时候好像都会502,如果不是上面的原因导致,等几分钟就好了。

4、gitlab-ctl reconfigure的时候ruby_block[supervise_redis_sleep] action run停住的情况:

sudo /opt/gitlab/embedded/bin/runsvdir-start &
sudo gitlab-ctl reconfigure

centos7搭建gitlab服务器、汉化的更多相关文章

  1. CentOS7安装GitLab、汉化及使用

    同步首发:http://www.yuanrengu.com/index.php/20171112.html 一.GitLab简介 GitLab是利用Ruby On Rails开发的一个开源版本管理系统 ...

  2. CentOS7安装GitLab、汉化、邮箱配置及使用

    同步首发:http://www.yuanrengu.com/index.php/20171112.html 一.GitLab简介 GitLab是利用Ruby On Rails开发的一个开源版本管理系统 ...

  3. CentOS7安装GitLab、汉化、邮箱配置及使用(转载)

    同步首发: https://www.cnblogs.com/heyonggang/p/7778203.html http://www.yuanrengu.com/index.php/20171112. ...

  4. centos7安装gitlab并汉化

    一.基础环境准备 1.安装依赖包 [root@gitlab-server ~]#yum install curl policycoreutils openssh-server openssh-clie ...

  5. CentOS7 搭建gitlab服务器

    本文介绍如何在CentOS7.2上搭建Gitlab服务器,并简单介绍如何使用. Preface 使用的是CentOS7.2的操作系统,安装当前最新版Gitlab服务器,下载地址:清华大学开源软件镜像站 ...

  6. Centos7 搭建Gitlab服务器并配置项目全过程

    https://blog.csdn.net/Abysscarry/article/details/79402695 gitlab与jenkins整合搭建      https://blog.csdn. ...

  7. centos7搭建Gitlab服务器

    虚拟机配置信息 内存最好大于或等于4G,之前用2G内存搭建,访问出现502报错信息 不考虑selinux和防火墙问题 搭建之前最好关掉selinux和防火墙 临时调增selinux和关闭防火墙 下载G ...

  8. Centos7使用docker搭建gitlab服务器

    了解到docker的优点,搭建快,运行要求资源低,最重要的是实现的功能和效果都能达到预期,于是决定使用docker来搭建gitlab服务器. 效果图如下: 系统环境:CentOS Linux rele ...

  9. confluence搭建破解及汉化教程

    注:本文参考了 < confluence搭建破解及汉化教程  > 本文是在yum环境搭建好,且可用联网的前提下进行的实际操作并作记录的. 关于yum本地环境搭建可以参考此文:<Cen ...

随机推荐

  1. 【原】Java学习笔记019 - 面向对象

    package cn.temptation; public class Sample01 { public static void main(String[] args) { // 仔细想一想,Ani ...

  2. 【原】Java学习笔记004 - 运算符

    package cn.temptation; public class Sample01 { public static void main(String[] args) { // 运算符:对常量 或 ...

  3. Camera Binning Mode

    Camera Binning Mode:像素合并模式,将相邻的像素单元电荷通过物理的方法叠加在一起作为一个像素输出信号: 水平方向Binning:  同列相邻行的电荷叠加 垂直方向Binning:   ...

  4. [转] Linux Asynchronous I/O Explained

    Linux Asynchronous I/O Explained (Last updated: 13 Apr 2012) *************************************** ...

  5. Python基础——1基础

    1.基础 输出 print(‘把子肉爱上热干面’,‘哈哈’)  # ‘,’输出为空格 输人 name = input(‘提示的内容’) /浮点除法  %.6f //地板除法  整除 %  取余 pyt ...

  6. python之sqlalchemy的使用

    准备数据 from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import Column from sqla ...

  7. 2019年桌面Linux需要做好的7件事

    2019年桌面Linux需要做好的7件事 新的一年已经到来,这意味着又一年过去了,Linux还是没有发现自己主宰了桌面.Linux在许多方面做得非常好,在接下来的几周,我们将研究一些最适合您各种需求的 ...

  8. Iris jwt 使用

    jwt分为三个部分: ​ 1.header,用来存储算法和token类型等信息 ​ 2.payload, 一些简单的信息 ​ 3.签名,来验证token是否合法 iris-jwt 这是初始化jwt中间 ...

  9. docker其他参考资料

    https://yeasy.gitbooks.io/docker_practice/image/build.html https://blog.csdn.net/weixin_42596342/art ...

  10. future builder

    import 'package:flutter/material.dart';import 'dart:convert';import 'package:http/http.dart' as http ...