news 2026/7/11 10:42:46

CentOS7系统安装GitLab

作者头像

张小明

前端开发工程师

1.2k 24
文章封面图
CentOS7系统安装GitLab

1.清华大学开源软件镜像站中查找gitlab镜像,选择gitlab-ce社区免费版本

清华大学开源软件镜像站地址

2.清华大学开源软件镜像站中查找gitlab镜像,选择gitlab-ce社区免费版本

3.选择CnetOS版本el7

4.选择gitlab版本进行下载:gitlab-ce-16.5.1-ce.0.el7.x86_64.rpm


5.rpm文件上传,gitlab安装

[root@localhost ~]# lsanaconda-ks.cfg gitlab-ce-16.5.1-ce.0.el7.x86_64.rpm[root@localhost ~]# yum install gitlab-ce-16.5.1-ce.0.el7.x86_64.rpm -y

6.gitlab无法检测到实例的有效主机名

Thank youforinstalling GitLab! GitLab was unable to detect a valid hostnameforyour instance.Please configure a URLforyour GitLab instance by setting `external_url` configuration in/etc/gitlab/gitlab.rb file.Then,you canstartyour GitLab instance by running the following command: sudo gitlab-ctl reconfigure

7.为gitlab实例配置url访问地址,设置为当前主机ip地址

[root@localhost ~]# vim /etc/gitlab/gitlab.rbexternal_url'http://10.62.158.200'

8.启动gitlab实例,安装完成,gitlab是开机自启的,不用设置

[root@localhost ~]# gitlab-ctl reconfigureUsername: root Password: You didn't opt-in to print initial root password to STDOUT.Password stored to/etc/gitlab/initial_root_password.This file will be cleaned up in first reconfigure run after 24 hours.

9.登录gitlab网站,用户名为root,初始化密码在 /etc/gitlab/initial_root_password 文件中

网址 - http://10.62.158.200/users/sign_in

[root@localhost ~]# cat /etc/gitlab/initial_root_password# WARNING: This value is valid only in the following conditions# 1. If provided manually (either via `GITLAB_ROOT_PASSWORD` environment variable or via `gitlab_rails['initial_root_password']` setting in `gitlab.rb`, it was provided before database was seeded for the first time (usually, the first reconfigure run).# 2. Password hasn't been changed manually, either via UI or via command line.## If the password shown here doesn't work, you must reset the admin password following https://docs.gitlab.com/ee/security/reset_user_password.html#reset-your-root-password.Password: 4RsIjQr3oFuutObHhTbPgW3OGOsoIzuHFXyFOPjLn1Q=# NOTE: This file will be automatically deleted in the first reconfigure run after 24 hours.


10.初始化密码会在登录后的24小时后自动删除,需要重新配置登录密码及界面语言

  • Preferences
  • Language选择简体中文,然后点击Save changes保存配置,刷新页面即可生效
  • 编辑个人资料
  • 密码,修改密码后保存即可

11.若要在服务器上进行git操作,需要安装git客户端

[root@localhost ~]# yum install git
版权声明: 本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!
网站建设 2026/7/11 10:42:41

GTA5线上小助手:如何在洛圣都获得终极游戏体验的完整指南

GTA5线上小助手:如何在洛圣都获得终极游戏体验的完整指南 【免费下载链接】GTA5OnlineTools GTA5线上小助手 项目地址: https://gitcode.com/gh_mirrors/gt/GTA5OnlineTools 你是否厌倦了在GTA5线上模式中重复枯燥的任务?是否想要快速解锁所有隐藏…

作者头像 李华
网站建设 2026/7/11 10:40:55

山东大学软件学院2026操作系统期末(回忆版)

考试时间:2026年7月10日上午8:30~10:30(最后一门了怎么文字量这么大啊啊啊啊,只能凭印象了,好多可能一个小题有好几问的我真记不起来了,要不靠其他人的版本吧)一、分析(10分)1.The m…

作者头像 李华
网站建设 2026/7/11 10:40:40

(1)自动驾

从现在开始,讲解基于计算机视觉的自动加驾驶核心技术自动驾驶

作者头像 李华
网站建设 2026/7/11 10:40:34

居家办公的知识管理工具链:从零散笔记到可检索的第二大脑

居家办公的知识管理工具链:从零散笔记到可检索的第二大脑 一、远程工作中信息检索的典型困境 远程开发者的信息散落在多个角落:Slack 线程里讨论的技术方案、Notion 文档中的设计决策、GitHub Issue 里的 Bug 分析、本地 markdown 笔记中的调试记录。三周…

作者头像 李华
网站建设 2026/7/11 10:39:44

Arduino Uno R3开发板入门学习笔记

目录 一、控制台的结构 二、技术规格 三、引脚分配 四、供电方式 五、内部存储 六、输入输出 6.1 数字输入输出 6.2 模拟输入输出 七、通信方式 7.1 硬件串口通信 7.2 软件串口通信 一、控制台的结构 Arduino Uno R3 是一款基于 ATmega328P 的微型控制板。它包含 1…

作者头像 李华