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

相关推荐
星释1 天前
如何自动部署GitLab项目
gitlab
keson要进步1 天前
CICD实战(二)-----gitlab的安装与配置
linux·运维·gitlab
猫头虎1 天前
[特殊字符]解决 “IDEA 登录失败。不支持早于 14.0 的 GitLab 版本” 问题的几种方法
java·ide·网络协议·http·https·gitlab·intellij-idea
风早君1 天前
jenkins集成gitlab发布到远程服务器
服务器·gitlab·jenkins
大白要努力!3 天前
在 Android Studio 中使用 GitLab 添加图片到 README.md
android·gitlab·android studio
星释3 天前
如何编写GitLab-CI配置文件
ci/cd·gitlab
馨羽的玩具3 天前
gitlab rss订阅失败
gitlab
t198751284 天前
jenkins结合gitlab实现CI
ci/cd·gitlab·jenkins
一颗小豆4 天前
07-接着玩-linux的CD/CI全流程体验
gitlab