软件包安装管理Gitlab

官方提供了非常详尽的系统及自动化脚本安装教程

Gitlab官网下载地址:https://gitlab.cn/install/


1、安装配置

今天我们说一下包安装管理,这样方便我们自己更精确的制定符合我们自己需要的Gitlab仓库

配置:ubuntu2004(focal) 4C8G

下载程序包:
https://packages.gitlab.com/gitlab/gitlab-ce
https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/

如果需要自设初始密码,配置参数
gitlab_rails['initial_root_password']

中文文档:https://docs.gitlab.cn/jh/

bash 复制代码
dpkg -i gitlab-ce_17.9.6-ce.0_amd64.deb

如无需要更改的配置文件可以直接执行下一步

bash 复制代码
sudo gitlab-ctl reconfigure

安装结束后可以查看各组件是否都已经正常运行

2、登陆设置

如果要配置域名登录的话请在配置文件 /etc/gitlab/gitlab.rb 中修改 external_url 'http://gitlab.example.com'

我这里配置网址为:gitlab.qingtong.com

windows上可以借助 SwitchHosts 这个工具来设置

如果你在初始化安装中配置了初始密码,请使用设置的密码登录,如果没有的话,第一次会生成一个随机字符串的密码 /etc/gitlab/initial_root_password

登陆后请修改密码并改为中文界面

修改语言:

点击头像-->Preferences-->Localization-->Language-->Chinses-->Savechanges

修改密码

点击头像-->偏好设置-->密码

设置完成后即可开始创建新项目

相关推荐
遇见火星1 天前
基于Docker容器的CICD项目Jenkins/gitlab/harbor/Maven实战
docker·容器·gitlab·jenkins·maven·harbor·cicd
邹卓为2 天前
docker 安装 Gitlab
docker·容器·gitlab
云途行者2 天前
GitLab 17.x 在 Ubuntu 24.04 上安装配置
linux·ubuntu·gitlab
Linux运维老纪4 天前
GitLab之搭建(Building GitLab)
linux·mysql·云计算·gitlab·运维开发
啊卡无敌5 天前
记一次gitlab服务器负载过高问题处理
服务器·gitlab·github
木二_6 天前
005.Gitlab CICD变量使用
ci/cd·gitlab·devops
幻影七幻8 天前
idea gitlab 操作
gitlab
java搬砖工-苤-初心不变10 天前
解决 Go 模块与 GitLab 私有仓库权限问题:SSH、HTTPS 和自动认证指南
golang·ssh·gitlab
@BreCaspian11 天前
生成 SSH Key 并配置 GitHub/GitLab 详细教程
ssh·gitlab·github