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

相关推荐
不倒翁玩偶9 小时前
Gitlab拉取代码token换成账号密码登录
gitlab
xixingzhe210 小时前
ubuntu安装gitlab
linux·ubuntu·gitlab
切糕师学AI1 天前
GitLab 是什么?
gitlab
明月心9523 天前
git remote add 用法
gitlab
only_Klein3 天前
jenkins流水线报错:Connection reset by peer
ci/cd·kubernetes·gitlab·jenkins·ssl
梁萌4 天前
docker部署gitlab和gitlab runner
docker·eureka·gitlab
johnnyAndCode4 天前
Idea 设置GitLab时使用账密,而不是token的配置方法
gitlab·idea
天外飞雨4 天前
Gitlab使用
gitlab
BUTCHER55 天前
GitLab SSH 密钥配置
运维·ssh·gitlab
明月心9525 天前
GitLab使用
gitlab