Linux 部署GitLab

本文提供了一步一步的指南来在Linux服务器上安装和配置GitLab,包括环境配置、下载安装、设置访问端口和IP、启动与管理、配置LDAP以及关闭注册功能。使用curl命令下载安装脚本,通过编辑gitlab.rb配置文件进行外部URL、数据目录和端口设置,并启用LDAP身份验证。
摘要由CSDN通过智能技术生成

1. 安装和配置环境(阿里云服务器可跳过)

```
# sudo yum install curl policycoreutils openssh-server openssh-clients
# sudo systemctl enable sshd
# sudo systemctl start sshd
# sudo yum install postfix
# sudo systemctl enable postfix
# sudo systemctl start postfix

# sudo firewall-cmd --permanent --add-service=http
# sudo systemctl reload firewalld
```

2. 下载

```
# curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash

# sudo yum install gitlab-ce
```

下载指定版本:

2.1 上此网页上查询需要的版本信息

网址:https://packages.gitlab.com/app/gitlab/gitlab-ce/search

2.2 查询当前系统信息

# uname -a

Linux abcdefg 3.10.0-1062.12.1.el7.x86_64 #1 SMP Tue Feb 4 23:02:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

2.3 执行下面语句,填上版本号

复制版本的全名,不要 .rpm

评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值