gitlab下载,离线安装

目录

1.下载

2.安装

3.配置

4.启动

5.登录

参考:


1.下载

根据服务器操作系统版本,下载对应的RPM包。

The DevSecOps Platform | GitLab

gitlab/gitlab-ce - Results in gitlab/gitlab-ce

Index of /gitlab-ce/yum/ | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror

2.安装

安装命令如下:

bash 复制代码
rpm -ivh gitlab-ce-16.4.3-ce.0.el7.x86_64.rpm

安装完成截图如下:

3.配置

打开/etc/gitlab/gitlab.rb文件, 修改 external_url 为服务器本地IP地址

bash 复制代码
vim /etc/gitlab/gitlab.rb

将 external_url 'http://gitlab.example.com

修改为: external_url 'http://10.54.183.53'

其中10.54.183.53 为服务器本地IP地址

4.启动

  • 运行重新配置命令
bash 复制代码
gitlab-ctl reconfigure

配置完成截图:

  • 查看运行状态:
bash 复制代码
gitlab-ctl status

截图如下:

5.登录

  • 查看临时密码:

打开 /etc/gitlab/initial_root_password文件, 查看 Password

bash 复制代码
cat /etc/gitlab/initial_root_password

截图如下:

  • 打开浏览器输入网址

http://10.54.183.53/

通过root 用户和上面文件中的临时密码登录

成功登录页面:

参考:

The DevSecOps Platform | GitLab

gitlab安装及使用教程 - 知乎

gitlab(骨灰级入门)-CSDN博客

相关推荐
谢栋_几秒前
基于 GitLab CI/CD 与 Google Gemini 的 AI Code Review 自动化方案
人工智能·ci/cd·gitlab
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