GitLab安装

本文详细指导如何在CentOS 7上通过清华镜像快速安装GitLab,包括防火墙设置、依赖软件安装、RPM包部署、配置与启动,以及设置开机自启动和root用户密码,适合开发者快速搭建个人或团队代码仓库平台。
摘要由CSDN通过智能技术生成

Gitlab下载地址:
国外:https://packages.gitlab.com/gitlab/gitlab-ce
国内清华镜像:https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/
注意:虚拟机需要2G内存2个CPU
一、关闭centos的防火墙,并设置不在开机启动
systemctl stop firewalld.service
systemctl disable firewalld.service
在这里插入图片描述二、安装依赖软件openssh(ssh协议的服务端和客户端)
yum install -y curl policycoreutils-python openssh-server cronie
安装lokkit
yum -y install lokkit
启动ssh
lokkit -s http -s ssh
设置ssh开机自启动
systemctl enable sshd

三、安装依赖软件postfix(邮件传输代理软件)
yum -y install postfix
设置postfix自启动
systemctl enable postfix
启动postfix
systemctl start postfix

四、将Gitlib rpm包上传到centos root目录,安装rpm包
rpm -ivh /root/gitlab-ce-13.5.3-ce.0.el7.x86_64.rpm
出现下列图标表示安装成功

上述步骤完成后重启centOS
五、配置gitlab(此步骤执行时间较长20-30分钟左右,需耐心等待)
gitlab-ctl reconfigure

六、启动gitlab
gitlab-ctl start

七、设置gitlib开机自启动
systemctl enable gitlab-runsvdir.service

八、安装完成后,使用服务器IP即可打开gitlab网页。并设置gitlab root用户密码。
九:使用root账号及密码登录

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值