gitlab本地部署

本文将指导您如何在Linux CentOS系统上安装和配置GitLab,实现本地部署。通过步骤详解,您可以学会从安装依赖到启动GitLab服务的全过程,为个人或团队提供便捷的代码管理和版本控制平台。
1.安装依赖包
[root@localhost home]# yum install -y curl policycoreutils-python openssh-server postfix vim wget git patch

2.在系统防火墙中打开HTTP和HTTPS,设置SSH、邮件开机启动
[root@localhost ~]# systemctl restart firewalld
[root@localhost ~]# firewall-cmd --permanent --add-service=http
[root@localhost ~]# firewall-cmd --permanent --add-service=https
[root@localhost ~]# systemctl reload firewalld
[root@localhost ~]# systemctl enable sshd
[root@localhost ~]# systemctl start sshd
[root@localhost ~]# systemctl enable postfix
[root@localhost ~]# systemctl start postfix

3.配置YUM源
[root@localhost home]# weget https://mirror.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-10.0.0-ce.0.el7.x86_64.rpm
[root@localhost home]# vim /etc/yum.repos.d/gitlab.repo #清华大学开源软件镜像站
[gitlab]
name=gitlab
baseurl=https://mirrors.tuna.tsiighua.edu.cn/gitlab-ce/yum/el7/ #根据系统版本配置
repo_gpgcheck=0
gpgcheck=0
enabled=1
gpgkey=https://packages.gitlab.com/gpg.key

4.安装gitlab
[root@localhost home]# yum clean all
[root@localhost ho
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值