GitLab部署到Linux

1.下载

bash 复制代码
Windows系统下载:
https://packages.gitlab.com/gitlab/gitlab-ce/packages/el/7/gitlab-ce-16.4.3-ce.0.el7.x86_64.rpm/download.rpm

Linux下载:
wget https://packages.gitlab.com/gitlab/gitlab-ce/packages/el/7/gitlab-ce-16.4.3-ce.0.el7.x86_64.rpm/download.rpm

2.安装

bash 复制代码
先安装依赖
yum install -y policycoreutils-python				

再安装GitLab
rpm -ivh gitlab-ce-16.4.3-ce.0.el7.x86_64.rpm		

3.配置

bash 复制代码
vim /etc/gitlab/gitlab.rb

修改前

修改后(改成本机IP)

运行配置

bash 复制代码
gitlab-ctl reconfigure

查看运行状态

bash 复制代码
gitlab-ctl status
run: alertmanager: (pid 33677) 410s; run: log: (pid 19618) 1165s
run: gitaly: (pid 32769) 548s; run: log: (pid 17643) 1418s
run: gitlab-exporter: (pid 33229) 479s; run: log: (pid 19330) 1204s
run: gitlab-kas: (pid 33009) 513s; run: log: (pid 18009) 1395s
run: gitlab-workhorse: (pid 33142) 493s; run: log: (pid 19122) 1224s
run: logrotate: (pid 17450) 1435s; run: log: (pid 17464) 1434s
run: nginx: (pid 19160) 1221s; run: log: (pid 19173) 1220s
run: node-exporter: (pid 33187) 487s; run: log: (pid 19259) 1212s
run: postgres-exporter: (pid 33704) 408s; run: log: (pid 19779) 1123s
run: postgresql: (pid 17777) 1407s; run: log: (pid 17810) 1404s
run: prometheus: (pid 33322) 466s; run: log: (pid 19493) 1187s
run: puma: (pid 18947) 1239s; run: log: (pid 18960) 1238s
run: redis: (pid 17527) 1429s; run: log: (pid 17571) 1426s
run: redis-exporter: (pid 33255) 476s; run: log: (pid 19421) 1194s
run: sidekiq: (pid 19003) 1234s; run: log: (pid 19017) 1233s

启动GitLab

bash 复制代码
gitlab-ctl start

4.登录

查看临时密码

bash 复制代码
cat /etc/gitlab/initial_root_password

打开浏览器输入

http://192.168.214.138/

PS:如果打不开网站就检查一下防火墙是否关闭!!!

相关推荐
还卿一钵无情泪9 小时前
Unsloth 微调 构建自己的大模型 没有GPU也能微调
linux·开发语言·人工智能·python·大模型·nlp·unsloth
高山有多高9 小时前
【Linux笔记】IO模型
linux
不会就选b9 小时前
Linux之TCP理论<1>
linux·运维·服务器
小π军10 小时前
操作系统面试题
java·linux·服务器
倔强的石头10610 小时前
应用账号最小权限实践:读写账号、报表账号、运维账号分层
java·运维·开发语言
Lsetea11 小时前
curl用IP测试HTTPS报证书不匹配:--resolve与Host头别混用
linux·https·ssl证书·openssl·curl
Hao28511 小时前
Windows11 下把 WSL2 Ubuntu 26.04 装到 D 盘完整
linux
Android系统攻城狮11 小时前
Linux Gstreamer深度解析之gst_audio_encoder_get_frame_samples_min调用流程与实战(六十)
linux·运维·服务器·音视频·gstreamer音视频·音视频进阶·gstreamer音视频进阶
_upupup12 小时前
Linux中的自动化构建——make/Makefile
linux·运维·自动化
HEJOO912 小时前
Linux 设备驱动系列——使用全局工作队列
java·linux·算法