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)

相关推荐
代码AC不AC6 小时前
【Linux】线程概念
linux·线程
志栋智能7 小时前
超自动化巡检:为智能运维(AIOps)铺平道路
运维·安全·自动化
武汉知识图谱科技7 小时前
智慧电厂AI中台:从燃料价值链到设备知识图谱的一体化智能运维
运维·人工智能·知识图谱
神奇小梵7 小时前
关于finalshell的使用
linux·服务器·网络
vortex57 小时前
进程管理器大横评:从 PM2 到 Systemd 的选型与实战
linux·shell·进程管理
墨北小七7 小时前
使用火山引擎 HiAgent 构建工业级设备智能运维智能体
运维·人工智能·火山引擎
Yana.nice7 小时前
/etc/rhsm/rhsm.conf配置文件解析
linux
Elecard 中国7 小时前
大规模媒体库如何实现自动化 QC?聊聊 VoD 文件检测架构
运维·自动化·ott·视频质检·vod·#视频编码·#音视频技术
Jurio.7 小时前
Codex cli 分屏并行运行
linux·ai·远程工作·codex
DolphinScheduler社区8 小时前
DolphinScheduler 3.1.3 跨越升级 3.4.1:基于 API 的自动化迁移方案
大数据·运维·自动化·任务调度·海豚调度