rpm安装gitlab

1.1 下载gitlab安装包

tex 复制代码
使用rpm包安装命令安装gitlab的rpm包,下载地址为https://packages.gitlab.com/gitlab/gitlab-ce社区版本;
推荐使用清华大学镜像:https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/

gitlab安装包详见:day07-实战\资料\GitLab安装\rpm安装包\gitlab-ce-10.0.0-ce.0.el7.x86_64.rpm

1.2 rpm安装gitlab

将gitlab-ce-10.0.0-ce.0.el7.x86_64.rpm包上传到centos7下,然后安装:

shell 复制代码
[root@itheima1 installPackages]# rpm -ivh gitlab-ce-14.10.2-ce.0.el7.x86_64.rpm 

效果:

tex 复制代码
警告:gitlab-ce-14.10.2-ce.0.el7.x86_64.rpm: 头V4 RSA/SHA1 Signature, 密钥 ID f27eab47: NOKEY
准备中...                          ################################# [100%]
正在升级/安装...
   1:gitlab-ce-14.10.2-ce.0.el7       ################################# [100%]
It looks like GitLab has not been configured yet; skipping the upgrade script.

       *.                  *.
      ***                 ***
     *****               *****
    .******             *******
    ********            ********
   ,,,,,,,,,***********,,,,,,,,,
  ,,,,,,,,,,,*********,,,,,,,,,,,
  .,,,,,,,,,,,*******,,,,,,,,,,,,
      ,,,,,,,,,*****,,,,,,,,,.
         ,,,,,,,****,,,,,,
            .,,,***,,,,
                ,*,.
  


     _______ __  __          __
    / ____(_) /_/ /   ____ _/ /_
   / / __/ / __/ /   / __ `/ __ \
  / /_/ / / /_/ /___/ /_/ / /_/ /
  \____/_/\__/_____/\__,_/_.___/
  

Thank you for installing GitLab!
GitLab was unable to detect a valid hostname for your instance.
Please configure a URL for your GitLab instance by setting `external_url`
configuration in /etc/gitlab/gitlab.rb file.
Then, you can start your GitLab instance by running the following command:
  sudo gitlab-ctl reconfigure

For a comprehensive list of configuration options please see the Omnibus GitLab readme
https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md

Help us improve the installation experience, let us know how we did with a 1 minute survey:
https://gitlab.fra1.qualtrics.com/jfe/form/SV_6kVqZANThUQ1bZb?installation=omnibus&release=14-10

1.3 配置gitlab

安装完毕后,提示信息如下:

编辑/etc/gitlab/gitlab.rb文件添加访问gitlab的wen路径:

然后刷新配置:

shell 复制代码
# 执行命令
[root@itheima1 installPackages]# gitlab-ctl reconfigure

刷新配置过程比较耗时,耐心等待,最终效果如下:

注意事项:

tex 复制代码
运行gitlab-ctl reconfigure指令时,如果卡顿则停止,后运行gitlab-ctl stop指令后,在重新运行gitlab-ctl reconfigure指令;

1.4 访问gitlab服务

http://192.168.200.130:9595

默认登录账号和密码为: root 5iveL!fe

可通过登录界面修改root密码,最终效果如下:

为: root 5iveL!fe

可通过登录界面修改root密码,最终效果如下:

[外链图片转存中...(img-kGK5OG55-1708332862331)]

相关推荐
likfishdn6 分钟前
Linux的文件与目录管理
linux·运维·服务器
chian-ocean26 分钟前
Linux 文件缓冲区:高效数据访问的幕后推手
linux·运维·服务器
加油=^_^=27 分钟前
【Linux】进程优先级 | 进程调度(三)
linux·运维·服务器
吃汤圆的抹香鲸1 小时前
GoLand 安装包 绿色版 Win,Mac,Linux 包含IntelliJ全家桶 专为Go语言设计的集成开发环境(IDE)
linux·windows·macos·go·intellij-idea·go1.19
追寻光1 小时前
Cannot find a valid baseurl for repo: base/7/x86_64
linux
元气满满的热码式1 小时前
Docker数据卷操作实战
linux·运维·docker·云原生·容器
陆沙1 小时前
deepseek-r1-centos-本地服务器配置方法
linux·服务器·centos
北京耐用通信1 小时前
航空装配自动化神器Ethercat转profient网关搭配机器人精准控制
运维·机器人·自动化
吃汤圆的抹香鲸2 小时前
Rider 安装包 绿色版 Win/Mac/Linux 适合.NET和游戏开发者使用 2025全栈开发终极指南:从零配置到企业级实战
linux·运维·windows·sql·游戏·macos·.net
sz66cm2 小时前
Linux基础 -- ARM 32 位架构动态注入代码技术文档
linux·arm开发·架构