在Debian系统上安装GitLab时,您可以选择安装GitLab Community Edition (CE) 或 GitLab Enterprise Edition (EE)。社区版是开源的,免费使用,而企业版则需要购买许可证。以下是安装GitLab的步骤:
- 更新系统:
sudo apt update sudo apt upgrade
- 安装依赖:
sudo apt install curl openssh-server ca-certificates postfix
在安装Postfix时,请选择“Internet Site”并配置您的服务器域名。
- 添加GitLab仓库:
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
- 安装GitLab:
sudo apt install gitlab-ce
- 启动GitLab服务:
sudo gitlab-ctl reconfigure
- 访问GitLab:
安装完成后,您可以通过浏览器访问GitLab的默认端口(通常是80或443)来访问GitLab的登录界面。
请注意,具体的版本信息和安装步骤可能会随着GitLab版本的更新而发生变化。建议您访问GitLab的官方文档或GitHub页面以获取最新的安装指南和版本信息。