安装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小时后删除

中文

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

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

相关推荐
我就是你毛毛哥1 天前
Docker 安装 GitLab
docker·容器·gitlab
雨声不在3 天前
gitlab中的repo删除特定commit
gitlab
vpk1124 天前
Docker Compose 部署 GitLab
docker·容器·gitlab
Irene19915 天前
什么是 DevOps
gitlab·devops
蓝天星空5 天前
GitLab上传项目到新的分支
gitlab
1candobetter8 天前
GitLab 项目创建与分支管理全流程
gitlab
林鸿群9 天前
Ubuntu 26.04 本地安装 GitLab CE 完整教程(非 Docker 方式)
linux·ubuntu·gitlab·私有部署·代码托管·ubuntu 26.04·omnibus
ascarl201010 天前
IDEA 一直弹 GitLab 登录,VS Code 却能正常 `git push`?问题排查记录
git·gitlab·intellij-idea
企鹅郁金香12 天前
Gitlab和Confluence和Svn的备份
svn·gitlab·confluence·gitlab备份·svn备份·confluence备份
barbyQAQ12 天前
GitLab CI/CD 基本用法指南
java·ci/cd·gitlab