当前位置: 首页 > news >正文

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
http://www.cnnetsun.cn/news/3284924.html

相关文章:

  • GTA5线上小助手:如何在洛圣都获得终极游戏体验的完整指南
  • Nexth中的SIWE实现:如何用Sign-In with Ethereum构建去中心化身份系统
  • 山东大学软件学院2026操作系统期末(回忆版)
  • (1)自动驾
  • 居家办公的知识管理工具链:从零散笔记到可检索的第二大脑
  • Arduino Uno R3开发板入门学习笔记
  • Java接口与抽象类的区别?
  • 双目立体匹配算法:Patch Match Stereo
  • 如何用LinkSwift网盘直链下载助手告别限速:九大网盘高速下载完整指南
  • PX4装机教程(七)几种常用的遥控器的使用
  • Webflow与AI集成实战:提升内容生成与访客互动效率
  • TMC7300与MK64FN1M0VDC12电机控制方案解析
  • 终极GitHub加速浏览器插件:如何让国内访问GitHub速度飞起来的完整指南
  • Fast-GitHub:国内开发者必备的GitHub加速浏览器扩展终极指南
  • C++ 函数封装实战:从甲流筛查题看代码复用,提升开发效率 30%
  • 如何在Windows上实现专业级触控体验:ThreeFingerDrag完全指南
  • QuPath开源生物图像分析工具:零基础掌握数字病理研究的全能助手
  • 物联网设备电池寿命优化与NBM7100A硬件级功耗管理
  • 大数据毕设项目:基于 SpringBoot + 大数据的地域音乐偏好分析系统的设计与实现 基于 SpringBoot + 大数据的音乐数据清洗处理系统 (源码+文档,讲解、调试运行,定制等)
  • [LeetCode] 300、最长上升子序列
  • 如何用RPFM将全面战争MOD开发效率提升5倍?终极指南揭秘
  • XUnity.AutoTranslator终极指南:3步实现Unity游戏无障碍翻译体验
  • B站视频下载工具:如何轻松保存4K大会员内容和充电专属视频
  • Photoshop Beta版AI功能全解锁:2024最新神经滤镜+生成式填充实战手册(仅限前500名开发者)
  • Unity纹理导入自动化:AssetPostprocessor实现精准控制与性能优化
  • 宇树科技王兴兴:机器人最终会走向普通消费者
  • 为什么你的Photoshop AI总“失灵”?——20年图像处理老兵复盘17类典型报错与5步精准修复法
  • AI声音克隆软件 CosyVoice今夕一键整合包解压即用 阿里巴巴通义实验室开源 github斩获22K星标
  • 资质资料完整的轻盈美学产品哪家靠谱?机构选择前需关注这4个维度
  • Navicat无限试用终极指南:3步解锁永久免费使用权限