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:如果打不开网站就检查一下防火墙是否关闭!!!

相关推荐
名字还没想好☜8 小时前
用 systemd 托管后台服务:Restart 策略、日志接管、资源限制与开机自启全踩一遍
运维·docker·kubernetes
乌恩大侠9 小时前
GH200 新增 NVMe SSD 分区、格式化与挂载完整流程
运维·服务器·前端
tangwangbi9 小时前
Linux 系统配置文件:/etc/profile、~/.bashrc 和 ~/.bash_profile 三者之间的区别与作用
linux·运维·bash
蜀道山老天师9 小时前
Shell Bash变量与运算符(含条件测试与流程控制)
linux·运维·bash
Mr.朱鹏9 小时前
Linux 服务器 LVM 根分区在线动态扩容
linux·服务器·数据库
草邦设计开发团队_媒体资源平台9 小时前
GEO 信源整合一键发布软文:从内容生产到流量获客的自动化实践
运维·人工智能·自动化
zhou lily10 小时前
非标自动化管理系统ERP如何选?2026年10大ERP软件对比分析
运维·自动化
mengge.cloud10 小时前
存储技术基础小白教程
linux·运维·服务器·wpf·存储
云贝贝贝10 小时前
腾讯云 TDSQL(MySQL 版)运维高频 6 坑:代理路由、读写分离、分片键、监控、PITR
运维·mysql·腾讯云
小五传输10 小时前
FTP替代怎么做?医院文件安全传输选型与迁移指南
大数据·运维·安全