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博客

相关推荐
极小狐2 天前
从 GitLab Flow 到 Pipeline:分支策略 + CI/CD + 运维一文打通
ci/cd·gitlab·devops·极狐gitlab
猫头虎3 天前
GitHub 入门教程:如何加入并为开源项目贡献代码
gitee·开源·gitlab·github·开放原子·开源协议·gitcode
悠然南风5 天前
【云原生学习】Prometheus监控、GitLab与Jenkins部署实战
kubernetes·gitlab
极小狐6 天前
极狐GitLab Runner 自托管安全加固指南
安全·ci/cd·gitlab·devops·runner·安全加固
钝挫力PROGRAMER7 天前
Windows Docker 环境搭建 GitLab CI/CD 流水线
windows·docker·gitlab·gitlab-runner
我一定会有钱13 天前
打造完美工作流:Git 配置”一次推送,三端同步”(Gitee/GitCode/GitHub)
开发语言·windows·vscode·搜索引擎·gitlab·github·visual studio code
LXY_BUAA13 天前
Git_在飞牛中部署 GitLab_20260817
git·gitlab
Jeanyia16 天前
GitLab 配套 Git 常用命令
git·gitlab
极小狐16 天前
极狐GitLab 补丁版本:19.2.1、19.1.3、19.0.5
网络·安全·gitlab·极狐gitlab·安全更新·补丁版本