博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
devops之路第一篇(gitlab搭建)
阅读量:7236 次
发布时间:2019-06-29

本文共 617 字,大约阅读时间需要 2 分钟。

1. 准备基础环境

操作系统:centos7.x

  • 设置yum国内源
  • 安装 sshd
yum install -y curl policycoreutils-python openssh-server
  • 启用并启动 sshd
systemctl enable sshdsystemctl start sshd
  • 配置防火墙

设置配置

echo "net.ipv4.ip_forward = 1" >> /etc/sysctl.conf

启用并启动防火墙

systemctl enable firewalldsystemctl start firewalld

2.安装 GitLab

配置下载源

$vi /etc/yum.repos.d/gitlab-ce.repo[gitlab-ce]name=Gitlab CE Repositorybaseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el$releasever/gpgcheck=0enabled=1

安装gitlab-ce

$yum install -y gitlab-ce

3.初始化 GitLab

  • 配置域名
$vim /etc/gitlab/gitlab.rb external_url 'http://work.myteam.com'
  • 初始化 GitLab
sudo gitlab-ctl reconfigure

转载地址:http://zxgfm.baihongyu.com/

你可能感兴趣的文章
[LeetCode] Preimage Size of Factorial Zeroes Function 阶乘零的原像个数函数
查看>>
GraphQL入门1
查看>>
C#委托的介绍(delegate、Action、Func、predicate)
查看>>
巧用Scrum与Kanban
查看>>
半自动化搭建Data Guard的想法和实践(一)
查看>>
巧用flashback database实现灵活的数据回滚
查看>>
oracle 11.2.0.1 for windows server2008r2告警ORA-03137
查看>>
Excel设置下拉菜单并隐藏下拉菜单来源单元格内容
查看>>
腾讯 Bugly for Xamarin Android 的插件
查看>>
开发一个Swing功能时的一点总结
查看>>
[20170520]利用undo表空间保护数据.txt
查看>>
springboot 配置多数据源 good
查看>>
malloc函数详解
查看>>
WPF 3D:使用变换中的TranslateTransform3D
查看>>
ik_max_word ik_smart
查看>>
消息总线优化之PubSub
查看>>
人工智能助力资深内容营销人员
查看>>
企业如何面对数据存储危机
查看>>
SQLServer中利用NTILE函数对数据进行分组的一点使用
查看>>
支付宝支付开发——当面付条码支付和扫码支付
查看>>