1. gitlab介绍

官方网站: www.gitlab.com

gitlab是一款使用ruby编写的代码版本管理系统,他可以通过web界面来管理代码.

2. gitlab安装

官方安装文档: https://about.gitlab.com/install/

建议: 在企业环境中,gitlab一定要尽可能使用一台独立的服务器进行管理.因为gitlab是用于存储代码的. 需要谨慎.

1. 安装gitlab
yum install -y curl policycoreutils-python openssh-server
systemctl enable sshd
systemctl start sshd 2. 启用postfix(官方文档写的安装.此步可以跳过.)
yum install postfix -y
systemctl enable postfix
systemctl start postfix 3.防火墙规则(开启防火墙才配置,没开防火墙不用配置.)
firewall-cmd --permanent --add-service=http
firewall-cmd --permanent --add-service=https
systemctl reload firewalld

2.1 使用gitlab包来安装.

gitlab安装包: https://packages.gitlab.com/gitlab/gitlab-ce

清华安装源: https://mirror.tuna.tsinghua.edu.cn/gitlab-ce/ [选择 yum版] 这里什么版本都有.

建议gitlab安装在一台独立服务器中.

#1. 依赖包安装
yum install curl policycoreutils openssh-server openssh-clients policycoreutils-python #2. 下载gitlab包
https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-10.0.6-ce.0.el7.x86_64.rpm
上传到服务器 #3. 安装gitlab
rpm -ivh gitlab-ce-10.2.2-ce.0.el7.x86_64.rpm [root@master tools]# rpm -ivh gitlab-ce-10.2.2-ce.0.el7.x86_64.rpm
warning: gitlab-ce-10.2.2-ce.0.el7.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID f27eab47: NOKEY
Preparing... ################################# [100%]
Updating / installing...
1:gitlab-ce-10.2.2-ce.0.el7 ################################# [100%]
It looks like GitLab has not been configured yet; skipping the upgrade script.
git安装完成. #4. 配置文件:
ls /etc/gitlab/gitlab.rb
vim /etc/gitlab/gitlab.rb
修改:
external_url 'http://gitlab.example.com' #网址改为 当前主机IP:
external_url 'http://10.0.0.63' 修改后必须执行重新配置:
命令:
gitlab-ctl reconfigure 出现:
Running handlers complete
Chef Client finished, 382/541 resources updated in 01 minutes 52 seconds
gitlab Reconfigured! ##代表配置成功了 #4. 启动gitlab:
[root@master tools]# gitlab-ctl status
run: gitaly: (pid 25917) 151s; run: log: (pid 25672) 178s
run: gitlab-monitor: (pid 25933) 150s; run: log: (pid 25775) 171s
run: gitlab-workhorse: (pid 25905) 151s; run: log: (pid 25571) 197s
run: logrotate: (pid 25609) 184s; run: log: (pid 25608) 184s
run: nginx: (pid 25591) 190s; run: log: (pid 25590) 190s
run: node-exporter: (pid 25720) 177s; run: log: (pid 25719) 177s
run: postgres-exporter: (pid 25962) 149s; run: log: (pid 25829) 163s
run: postgresql: (pid 25351) 241s; run: log: (pid 25350) 241s
run: prometheus: (pid 25948) 150s; run: log: (pid 25810) 164s
run: redis: (pid 25279) 247s; run: log: (pid 25278) 247s
run: redis-exporter: (pid 25790) 170s; run: log: (pid 25789) 170s
run: sidekiq: (pid 25554) 203s; run: log: (pid 25553) 203s
run: unicorn: (pid 25516) 205s; run: log: (pid 25515) 205s #启动gitlab:
[root@master tools]# gitlab-ctl restart
ok: run: gitaly: (pid 26704) 0s
ok: run: gitlab-monitor: (pid 26715) 0s
ok: run: gitlab-workhorse: (pid 26724) 1s
ok: run: logrotate: (pid 26733) 0s
ok: run: nginx: (pid 26740) 1s
ok: run: node-exporter: (pid 26746) 0s
ok: run: postgres-exporter: (pid 26752) 1s
ok: run: postgresql: (pid 26761) 0s
ok: run: prometheus: (pid 26804) 0s
ok: run: redis: (pid 26813) 1s
ok: run: redis-exporter: (pid 26817) 0s
ok: run: sidekiq: (pid 26831) 0s
ok: run: unicorn: (pid 26840) 1s
#状态:
[root@master tools]# gitlab-ctl status
run: gitaly: (pid 26704) 43s; run: log: (pid 25672) 418s
run: gitlab-monitor: (pid 26715) 43s; run: log: (pid 25775) 411s
run: gitlab-workhorse: (pid 26724) 43s; run: log: (pid 25571) 437s
run: logrotate: (pid 26733) 42s; run: log: (pid 25608) 424s
run: nginx: (pid 26740) 42s; run: log: (pid 25590) 430s
run: node-exporter: (pid 26746) 41s; run: log: (pid 25719) 417s
run: postgres-exporter: (pid 26752) 41s; run: log: (pid 25829) 403s
run: postgresql: (pid 26761) 40s; run: log: (pid 25350) 481s
run: prometheus: (pid 26804) 40s; run: log: (pid 25810) 404s
run: redis: (pid 26813) 40s; run: log: (pid 25278) 487s
run: redis-exporter: (pid 26817) 39s; run: log: (pid 25789) 410s
run: sidekiq: (pid 26831) 37s; run: log: (pid 25553) 443s
run: unicorn: (pid 26855) 36s; run: log: (pid 25515) 445s 启动成功后,通过web浏览器进行访问:

启动gitlab访问结果:

![image-20191216020648122](

启动后第一次进入gitlab会让你更改管理员密码[默认用户root]:

gitlab界面

相关软件包

gitlab-ce-10.2.2-ce.0.el7.x86_64.rpm

05.gitlab_01.gitlab介绍与gitlab安装.pdf

005. gitlab安装的更多相关文章

  1. GitLab - 安装并启动GitLab

    1 - GitLab安装 1.1 信息确认 [Anliven@node102 ~]$ uname -a Linux node102 3.10.0-957.el7.x86_64 #1 SMP Thu N ...

  2. GitLab安装说明

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

  3. Gitlab安装、汉化及使用

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

  4. git\CentOS6.5中gitlab安装教程

    一.Git 起源: Git是一个开源的分布式版本控制系统,用于敏捷高效地处理任何或小或大的项目. Git 是 Linus Torvalds 为了帮助管理 Linux 内核开发而开发的一个开放源码的版本 ...

  5. Ubuntu gitlab安装文档及邮件通知提醒配置

    1.安装依赖包,运行命令 sudo apt-get install curl openssh-server ca-certificates postfix 2.由于gitlab官方源可能被“墙”,首先 ...

  6. gitlab安装随记

    gitlab安装 配置yum源 sudo vim /etc/yum.repos.d/gitlab-ce.repo 按照网上别人的例子,修改为清华的源 [gitlab-ce] name=Gitlab C ...

  7. CentOS 7 环境下GitLab安装及基本配置

    新实验室要求重新建设GitLab,对于我来讲,是第一次有机会当元老参与实验室的建设.下面分享我自己的实测经验: 1. 安装依赖软件并设置开机启动 yum install curlpolicycoreu ...

  8. GitLab安装及使用

    GitLab是一个利用 Ruby on Rails 开发的开源应用程序,实现一个自托管的Git项目仓库,可通过Web界面进行访问公开的或者私人项目. GitLab拥有与Github类似的功能,能够浏览 ...

  9. gitlab之一: gitlab安装配置使用

    参考: gitlab 安装和配置 gitlab下载地址: https://mirror.tuna.tsinghua.edu.cn/gitlab-ce/ 官方教程: https://about.gitl ...

  10. Gitlab安装以及汉化

    Gitlab安装以及汉化 系统环境: CentOS 7.5 IP:192.168.1.2 关闭selinux.firewalld gitlab-ce-10.8.4 rpm包:下载地址 一.下载并安装g ...

随机推荐

  1. centos-stream-9 centos9 配置国内yum源 阿里云源

    源配置 tips: yum配置文件路径 /etc/yum.repos.d/centos.repo 1.备份源配置 [Very Important!] mv /etc/yum.repos.d/cento ...

  2. mysql 重新整理——索引优化explain字段介绍一 [九]

    前言 在七种介绍了explain这东西,那么具体来看下它是如何来运行的吧. 正文 id 来看一条语句:EXPLAIN select * from departments,dept_emp,employ ...

  3. leetcode:1380. 矩阵中的幸运数

    1380. 矩阵中的幸运数 给你一个 m * n 的矩阵,矩阵中的数字 各不相同 .请你按 任意 顺序返回矩阵中的所有幸运数. 幸运数是指矩阵中满足同时下列两个条件的元素: 在同一行的所有元素中最小 ...

  4. MD5前端vue加密

    Vue 前端md5加密用户注册时将加密后的密码发送给后端存储当登陆的时候,再将加密后的密码和数据库中加密的密码相匹配.npm: https://www.npmjs.com/package/crypto ...

  5. 力扣479(java)-最大回文数乘积(困难)

    题目: 给定一个整数 n ,返回 可表示为两个 n 位整数乘积的 最大回文整数 .因为答案可能非常大,所以返回它对 1337 取余 . 示例 1: 输入:n = 2输出:987解释:99 x 91 = ...

  6. 传统微服务框架如何无缝过渡到服务网格 ASM

    简介: 让我们一起来看下传统微服务迁移到服务网格技术栈会有哪些已知问题,以及阿里云服务网格 ASM 又是如何无缝支持 SpringCloud .Dubbo 这些服务的. 作者:宇曾   背景   软件 ...

  7. 【云原生】拿下 Gartner 容器产品第一,阿里云打赢云原生关键一战!

    近日,Gartner 发布 2020 年公共云容器报告,据报告显示,阿里云和 AWS 拥有最丰富的产品布局,覆盖 9 项产品能力,并列排名第一. 据 Gartner 分析师评论,阿里云拥有丰富的容器产 ...

  8. 成中集团线下IDC迁移上云

    阿里云根据成中集团业务场景入手,提供了上云方案和迁移建议,利用这套架构,保障了公司数据的安全性并且满足了公司对于备份机制的建立的基本诉求,并且降低了业务出现中断的风险. 公司介绍 成中简介: 我们公司 ...

  9. Quick BI产品核心功能大图(五)移动端:让数据在更多业务场景中流通

    ​简介:将数据更好的融入日常工作中,一个重要的前提条件就是多端多渠道的数据触达和办公协同能力. Quick BI凭借移动端交互体验,帮助用户随时随地便捷查看报表,并通过在线协同方式,追踪策略的执行落地 ...

  10. 那些你不知道的TCP冷门知识!

    简介: 最近在做数据库相关的事情,碰到了很多TCP相关的问题,新的场景新的挑战,有很多之前并没有掌握透彻的点,大大开了一把眼界,选了几个案例分享一下. 最近在做数据库相关的事情,碰到了很多TCP相关的 ...