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

相关推荐
yyuuuzz15 小时前
nginx 502 排查,先看上游超时那一行
android·java·运维·nginx·502
StarsGreen16 小时前
Linux动态 DMA 映射指南(翻译版)
linux
StarsGreen21 小时前
Linux 网络配置命令参考
linux
飞奔的瓜牛1 天前
Nginx 生产环境运维实践:常见问题、关注要点与日常维护
运维·nginx
Eyfcom1 天前
〖物流 SaaS 实战 02〗SaaS 租户的计费与订阅模型:从“一锤子买卖”到“按需订阅”
linux·服务器·数据库·快递系统·物流saas实战
瑞克-桑切斯1 天前
Kubernetes 1.28 保姆级新手学习教程
运维·学习·docker·云原生·容器·kubernetes
数据库急诊室_阿哲1 天前
一次割接后的性能复核记录:基线、样本、回滚点
运维·数据库·dba
忆挽篱笙歌1 天前
systemV进程通信
linux·运维·服务器
飞奔的瓜牛2 天前
Wireshark 抓包实战:呼叫中心项目中的 SIP、DTMF 与 RTP 分析
运维·wireshark