devops之路第一篇(gitlab搭建)
1. 准备基础环境
操作系统:centos7.x
- 设置yum国内源
- 安装 sshd
yum install -y curl policycoreutils-python openssh-server
- 启用并启动 sshd
systemctl enable sshd systemctl start sshd
- 配置防火墙
设置配置
echo "net.ipv4.ip_forward = 1" >> /etc/sysctl.conf
启用并启动防火墙
systemctl enable firewalld systemctl start firewalld
2.安装 GitLab
配置下载源
$vi /etc/yum.repos.d/gitlab-ce.repo [gitlab-ce] name=Gitlab CE Repository baseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el$releasever/ gpgcheck=0 enabled=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
相关推荐
花落兰亭 2020-06-09
cxin 2020-11-06
synshitou 2020-10-21
Topbeyond 2020-08-21
happyfreeangel 2020-07-27
白开水 2020-07-19
无风的雨 2020-07-08
贤时间 2020-07-06
wishli 2020-06-28
小信 2020-06-21
leehbhs 2020-06-20
happyfreeangel 2020-06-18
83284950 2020-06-17
冯冯领队 2020-06-16
就是那个胖子 2020-06-14
83284950 2020-06-14
LiHansiyuan 2020-06-14
fcds00 2020-06-11