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

相关推荐
Java王小怪7 小时前
Docker环境Redis没挂载保存数据
运维·docker·容器
你住过的屋檐7 小时前
【Nginx】linux上安装nginx
linux·运维·nginx
宵时待雨7 小时前
linux笔记归纳17:传输层协议UDP
linux·笔记·udp
晓晓_za8986689 小时前
开源 GEO 优化源码二次开发:贴牌改造与业务模块扩展实践
java·运维·服务器·开发语言·性能优化·开源
SCandL1529 小时前
k8s service
linux·容器·kubernetes
云计算DevOps-韩老师9 小时前
【MySQL运维DBA】【SQL基础系列002篇】
运维·mysql·dba
DBA大董9 小时前
TDengine3.0 DBA常用的运维命令和SQL2
运维·数据库·时序数据库·dba·tdengine
会飞的土拨鼠呀10 小时前
Linux的存储使用率应该如何计算
linux·运维·服务器
Elastic 中国社区官方博客10 小时前
OpenTelemetry Java 扩展:无需分叉 agent 即可自定义追踪
java·大数据·运维·开发语言·数据库·人工智能·elasticsearch
aaaBsBsBsB11 小时前
k8s pod管理
运维·docker·容器