安装gitlab

安装gitlab

环境

关闭防火墙以及selinux,起码4核8G 内存至少 3G 不然启动不了

下载环境

gitlab官网:GitLab下载安装_GitLab最新中文基础版下载安装-极狐GitLab

rpm包下载地址: [Yum - Nexus Repository Manager (gitlab.cn)](https://packages.gitlab.com/gitlab/gitlab-ce)

可以直接点击上面的连接进行下载rpm包 -- 下面选择对应的版本

shell 复制代码
 yum install -y curl policycoreutils-python openssh-server perl
 yum install gitlab-jh-16.0.3-jh.0.el7.x86_64.rpm -y # 我选择的是 16.0.3  找不到的话直接找个16版本的就可以

初始化

shell 复制代码
# 以下两种方法都可以配置访问地址,第一种需要在yum安装前配置
export EXTERNAL_URL='http://192.168.249.156'
# 或
vim /etc/gitlab/gitlab.rb
external_url 'http://192.168.249.156'  自己的 ip 
# 启动加载配置文件
gitlab-ctl reconfigure

状态

shell 复制代码
gitlab-ctl status
run: gitaly: (pid 4491) 48s; run: log: (pid 4087) 279s
run: gitlab-monitor: (pid 4539) 44s; run: log: (pid 4251) 207s
run: gitlab-workhorse: (pid 4501) 47s; run: log: (pid 4099) 273s
run: logrotate: (pid 4125) 265s; run: log: (pid 4124) 265s
run: nginx: (pid 4112) 271s; run: log: (pid 4111) 271s
run: node-exporter: (pid 4175) 243s; run: log: (pid 4174) 243s
run: postgres-exporter: (pid 4528) 45s; run: log: (pid 4223) 219s
run: postgresql: (pid 3933) 343s; run: log: (pid 3932) 343s
run: prometheus: (pid 4514) 46s; run: log: (pid 4156) 259s
run: redis: (pid 3876) 355s; run: log: (pid 3875) 355s
run: redis-exporter: (pid 4186) 237s; run: log: (pid 4185) 237s
run: sidekiq: (pid 4078) 281s; run: log: (pid 4077) 281s
run: unicorn: (pid 4047) 287s; run: log: (pid 4046) 287s

登陆 Gitlab

用户名: root 密码存放在 /etc/gitlab/initial_root_password 文件中,该文件会在24小时后删除

中文

如图,英文对应的位置 偏好设置 -- 其他版本不一样

里面进行设置,就不演示了

相关推荐
lijunjun2 天前
当ubuntu 系统的IP地址修改之后,gitlab服务应该如何修改?
tcp/ip·ubuntu·gitlab
Qperable5 天前
gitlab-runner提示401 Unauthorized
后端·gitlab
西瓜er5 天前
Docker 一键部署指南:GitLab、Nacos、Redis、MySQL 与 MinIO 全解析
redis·docker·gitlab
yunson_Liu6 天前
jenkins更新了gitlab后出现报错
运维·gitlab·jenkins
stark张宇6 天前
Git 与 GitHub 协同工作流:从0到1搭建版本控制体系
git·gitlab·github
牛马的人生11 天前
GitLab入门教程:打开DevOps全流程的大门
运维·其他·gitlab·devops
水冗水孚11 天前
Ubuntu服务器上使用docker-compose部署 gitlab(图文并茂记录)
gitlab
<花开花落>13 天前
gitlab-runner 再次实践中理解和学习
gitlab
Vahala0623-孔勇14 天前
CI/CD流水线优化:GitLab CI镜像构建加速实战
ci/cd·gitlab
Lin_Aries_042115 天前
部署 GitLab 服务器
linux·运维·服务器·docker·gitlab·github