Ubuntu-GitLab

1、系统安装

apt update

apt upgrade

apt update

2、安装依赖

sudo apt update

sudo apt install -y curl openssh-server ca-certificates postfix

3、官方源安装

curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash

sudo apt install gitlab-ce

4、配置端口

vi /etc/gitlab/gitlab.rb

external_url 'http://gitlab.example.com'

external_url 'http://10.20.16.9'

5、应用配置并启动gitlab

sudo gitlab-ctl reconfigure

需要等待一段时间

6、获取密码并登录

cat /etc/gitlab/initial_root_password

7、修改密码

常用命令

sudo gitlab-ctl reconfigure

sudo gitlab-ctl restart

相关推荐
无足鸟ICT18 分钟前
【RHCA+】查看变量
linux·运维·服务器
Kina_C28 分钟前
Linux DNS 服务器-从高速缓存到辅助 DNS 部署指南
linux·运维·服务器·dns
EasyGBS40 分钟前
ONVIF设备接入国标GB28181视频平台EasyGBS:不用国标也能一键拉流!
服务器·php·音视频
suaizai_41 分钟前
TypeScript 7 正式发布!Vue 暂被 “拒之门外“ !!!
linux·运维·ubuntu
小小代码狗2 小时前
SQLi-Labs 基础注入实战教程(Less-1 ~ Less-5and Less-9)
服务器·python·php
慕伏白2 小时前
【慕伏白】Linux 系统如何根据端口号关闭进程
linux·运维·服务器
letisgo52 小时前
VMware Workstation + Ubuntu 26.04 LTS 小白运维部署手册
linux·运维·ubuntu
蓝创工坊Blue Foundry2 小时前
图片文字提取到 Excel:批量任务如何先定义要交付的字段
运维·服务器·开发语言·数据库·自动化·ocr·excel
晚风吹长发2 小时前
Docker使用——Docker容器及相关命令
linux·运维·服务器·docker·容器·架构
jun_bai3 小时前
Orthanc服务器使用java上传dicom影像文件
java·运维·服务器