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. redis问题集

    Redis有哪些数据结构? 字符串String.字典Hash.列表List.集合Set.有序集合SortedSet. 如果你是Redis中高级用户,还需要加上下面几种数据结构HyperLogLog.G ...

  2. iOS Search bar 输入空字符串也可以搜索

    Search bar delegate - (void)searchBarTextDidBeginEditing:(UISearchBar *)searchBar { UITextField *sea ...

  3. 初识yeoman

    最近开始新项目,在项目构建上面寻找合适的东西,grunt,bower到发现yeoman;学习了下,把一些东西记录下来然留着以后用. 1.什么是Yeoman Yeoman是Google的团队和外部贡献者 ...

  4. Webservice工作原理及实例

    Web Service工作原理及实例   一.Web Service基本概念   Web Service也叫XML Web Service WebService是一种可以接收从Internet或者In ...

  5. 支付宝app支付提示 系统繁忙,请稍后重试

    v2版本的支付宝支付,无论怎么调试返回的都是系统繁忙,请稍后重试提示.经过对给的示例代码的仔细研究,最后发现是由于老版本的sign_type 不加入签名计算,而新版本的支付签名它是加入签名计算的.供大 ...

  6. 回顾.NET Remoting分布式开发

    记得在下第一次接触.NET Remoting分布式开发是在2003年,那时候是Framework1.0初次亮相之时,Remoting分布式开发是Framework1.0其中一个亮点.经过多年的发展,在 ...

  7. Fluent Ribbon 第八步 其他控件

    前七节将Ribbon的功能大致介绍了一番,本节来介绍一些特殊控件的使用 DropDownButton控件 当前控件是显示下拉功能的基本组件,其配合Gallery能实现诸多特殊功能,代码如下所示 < ...

  8. ubuntu 使用串口picocom

    连上USB转串口 查看是否识别串口     dmesg | grep ttyUSB0 安装(mint / ubuntu): $ sudo apt-get install picocom 使用: 先赋予 ...

  9. 2.2 - ATM+购物商城程序

    要求:模拟实现一个ATM + 购物商城程序1.额度 15000或自定义2.实现购物商城,买东西加入 购物车,调用信用卡接口结账3.可以提现,手续费5%4.支持多账户登录5.支持账户间转账6.记录每月日 ...

  10. Vue(6)- Vue-router进阶、单页面应用(SPA)带来的问题

    一.Vue-router进阶 回顾学过的vue-router,并参考官方文档学习嵌套路由等路由相关知识. 二.单页面应用(SPA)带来的问题 1.虽然单页面应用有优点,但是,如果后端不做服务器渲染(h ...