GitLab介绍:

  GitLab是一个利用 Ruby on Rails 开发的开源应用程序,实现一个自托管的Git项目仓库,可通过Web界面进行访问公开的或者私人项目。

  GitLab拥有与Github类似的功能,能够浏览源代码,管理缺陷和注释。

1、安装依赖包

  [root@localhost ~]# yum install curl policycoreutils openssh-server openssh-clients postfix -y
  [root@localhost ~]# systemctl start postfix
  [root@localhost ~]# curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
  [root@localhost ~]# yum install -y gitlab-ce

  [root@localhost
~]# yum install -y git

2、生成SSL证书

  [root@gitlab ~]# mkdir -p
/etc/gitlab/ssl

  [root@gitlab ~]# openssl genrsa
-out "/etc/gitlab/ssl/gitlab.pso.com.key" 2048

  [root@gitlab ~]# openssl req -new
-key "/etc/gitlab/ssl/gitlab.pso.com.key" -out
"/etc/gitlab/ssl/gitlab.pso.com.csr"

  [root@gitlab ssl]# openssl x509
-req -days 3650 -in "/etc/gitlab/ssl/gitlab.pso.com.csr" -signkey
"/etc/gitlab/ssl/gitlab.pso.com.key" -out
"/etc/gitlab/ssl/gitlab.pso.com.crt"

  [root@gitlab ssl]# openssl dhparam
-out /etc/gitlab/ssl/dhparams.pem 2048

3、需改Gitlab配置文件中的SSL

  [root@gitlab ssl]# vim
/etc/gitlab/gitlab.rb

    external_url 'https://gitlab.pso.com'

    nginx['redirect_http_to_https'] = true

    nginx['ssl_certificate'] = "/etc/gitlab/ssl/gitlab.pso.com.crt"

    nginx['ssl_certificate_key'] = "/etc/gitlab/ssl/gitlab.pso.com.key"

    # nginx['ssl_dhparam'] =
/etc/gitlab/ssl/dhparams.pem

4、配置并启动Gitlab

  Gitlab-ctl reconfigure

  Gitlab-ctl status

  Gitlab-ctl stop

  Gitlab-ctl start

5、gitlab默认使用80或443端口,可以通过
lsof -i:80 查看

  [root@localhost ~]# lsof -i:80

  COMMAND   PID    
  USER   FD   TYPE DEVICE SIZE/OFF NODE NAME

  nginx   37010    
  root    7u  IPv4  58530   
  0t0  TCP *:http (LISTEN)

  nginx   37011 gitlab-www 
  7u  IPv4  58530      0t0  TCP *:http (LISTEN)

  nginx   37012 gitlab-www 
  7u  IPv4  58530      0t0  TCP *:http (LISTEN)

  nginx   37013 gitlab-www 
  7u  IPv4  58530      0t0  TCP *:http (LISTEN)

  nginx   37014 gitlab-www 
  7u  IPv4  58530      0t0  TCP *:http (LISTEN)

6、第一次登录,修改密码(默认管理员为:root)

GitLab 安装与入门的更多相关文章

  1. Apache Hadoop2.x 边安装边入门

    完整PDF版本:<Apache Hadoop2.x边安装边入门> 目录 第一部分:Linux环境安装 第一步.配置Vmware NAT网络 一. Vmware网络模式介绍 二. NAT模式 ...

  2. bower安装使用入门详情

    bower安装使用入门详情   bower自定义安装:安装bower需要先安装node,npm,git全局安装bower,命令:npm install -g bower进入项目目录下,新建文件1.tx ...

  3. [Python爬虫] scrapy爬虫系列 <一>.安装及入门介绍

    前面介绍了很多Selenium基于自动测试的Python爬虫程序,主要利用它的xpath语句,通过分析网页DOM树结构进行爬取内容,同时可以结合Phantomjs模拟浏览器进行鼠标或键盘操作.但是,更 ...

  4. GitLab安装说明

    GitLab,是一个使用 Ruby on Rails 开发的开源应用程序,与Github类似,能够浏览源代码,管理缺陷和注释,非常适合在团队内部使用. gitlab是基于Ruby on Rails的, ...

  5. 虚拟光驱 DAEMON Tools Lite ——安装与入门

    DAEMON Tools Lite 是什么?它不仅仅是虚拟光驱.是的,你可以使用它制作.加载光盘映像,但是 DAEMON Tools 产品那么多,Lite版与其他版本究竟有什么不同呢?或者说,是什么让 ...

  6. Python 3.6.3 官网 下载 安装 测试 入门教程 (windows)

    1. 官网下载 Python 3.6.3 访问 Python 官网 https://www.python.org/ 点击 Downloads => Python 3.6.3 下载 Python ...

  7. 八:Lombok 安装、入门 - 消除冗长的 java 代码

    Lombok 安装.入门 - 消除冗长的 java 代码 前言:    逛开源社区的时候无意发现的,用了一段时间,觉得还可以,特此推荐一下.    lombok 提供了简单的注解的形式来帮助我们简化消 ...

  8. robotframework安装及入门指南

    将很久之前自己在本地记录的一些笔记发表到随笔来,希望能够帮到一些童鞋~ robotframework安装及入门指南 本文主要介绍robotframework在windows环境的安装过程! 安装步骤 ...

  9. Gitlab安装、汉化及使用

    环境:centos 关闭防火墙和selinux [root@Gitlab ~]# setenforce [root@Gitlab ~]# service iptables stop && ...

随机推荐

  1. IOS7--javascriptcore中jscontext使用要注意的一点

    在公司一个项目中,用到了highchart做图表显示的组件,这就要用到了javascriptcore,代码就不上了,说说原理. 需求是这样的,通过http请求server csv格式的数据,然后解析, ...

  2. 关于mariadb远程连接授权的设置

    1.首先配置允许访问的用户,采用授权的方式给用户权限 1 GRANT ALL PRIVILEGES ON *.* TO 'root'@'%'IDENTIFIED BY '123456' WITH GR ...

  3. Toxophily-数论以及二分三分

    G - Toxophily Time Limit:1000MS     Memory Limit:32768KB     64bit IO Format:%I64d & %I64u Submi ...

  4. log4j中将SocketAppender将日志内容发送到远程服务器

    1.服务端配置 1)服务端配置文件log4j-server.properties #Define a narrow log category. A category like debug will p ...

  5. nvm-windows 手动安装 nvm use 无效 'node' 不是内部或外部命令,也不是可运行的程序

    按照这两位前辈的教程,安装了nvm-windows. http://www.cnblogs.com/yesyes/p/7403184.html http://blog.csdn.net/jingsi1 ...

  6. CodeFores 665D Simple Subset(贪心)

    D. Simple Subset time limit per test 1 second memory limit per test 256 megabytes input standard inp ...

  7. wsgi pep333

    转自:https://www.aliyun.com/jiaocheng/444966.html?spm=5176.100033.1.11.559a7C 摘要:wsgi介绍参考:pep333wsgi有两 ...

  8. 第16章—日志(slf4j&logback)

    spring boot 系列学习记录:http://www.cnblogs.com/jinxiaohang/p/8111057.html 码云源码地址:https://gitee.com/jinxia ...

  9. 转!java操作redis

    package sgh.main.powersite; import java.util.ArrayList; import java.util.HashMap; import java.util.I ...

  10. numpy.random.random & numpy.ndarray.astype & numpy.arange

    今天看到这样一句代码: xb = np.random.random((nb, d)).astype('float32') #创建一个二维随机数矩阵(nb行d列) xb[:, 0] += np.aran ...