安装gitlab

安装gitlab

环境

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

下载环境

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

rpm包下载地址: [Yum - Nexus Repository Manager (gitlab.cn)](https://packages.gitlab.cn/#browse/search/yum)(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小时后删除

中文

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

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

相关推荐
我一定会有钱16 小时前
打造完美工作流:Git 配置”一次推送,三端同步”(Gitee/GitCode/GitHub)
开发语言·windows·vscode·搜索引擎·gitlab·github·visual studio code
LXY_BUAA19 小时前
Git_在飞牛中部署 GitLab_20260817
git·gitlab
Jeanyia4 天前
GitLab 配套 Git 常用命令
git·gitlab
极小狐4 天前
极狐GitLab 补丁版本:19.2.1、19.1.3、19.0.5
网络·安全·gitlab·极狐gitlab·安全更新·补丁版本
rustfs5 天前
GitLab 如何与 RustFS 集成?
分布式·rust·gitlab
郝亚军6 天前
gitlab常用命令
gitlab
xixingzhe210 天前
Java 使用 GitLab4J 实现 WebHook
gitlab
童槿顏丶11 天前
GitLab部署到Linux
linux·运维·gitlab
InfinitePlus12 天前
Gitlab docker版本安装
docker·容器·gitlab
进击切图仔12 天前
GitLab 新用户创建与项目授权操作指南
gitlab