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

Centos7安装Gitlab--gitlab--ee版

1 安装必要依赖
2 配置GitLab软件源镜像
3 下载安装GitLab
4 查看管理员root用户默认密码
5 登录GitLab
6 修改密码
7 gitlab相关命令

1 安装必要依赖

sudo yum install -y curl policycoreutils-python openssh-server perl 
sudo systemctl enable sshd 
sudo systemctl start sshd # 开启 http 端口:GitLab 默认端口
# 开启 https 端口:GitLab 默认端口
sudo firewall-cmd --permanent --add-service=http 
sudo firewall-cmd --permanent --add-service=https # 重载防火墙
sudo systemctl reload firewalld# 查看防火墙已开放的端口与服务
sudo firewall-cmd --list-all

2 配置GitLab软件源镜像

curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash

3 下载安装GitLab

--注意1:IP地址为虚拟机的IP地址
sudo EXTERNAL_URL="http://10.0.0.203" yum install -y gitlab-ee--注意2:出现下面这个说明安装成功

在这里插入图片描述

4 查看管理员root用户默认密码

# 用户名为 root
# 使用如下命令查看密码:
sudo cat /etc/gitlab/initial_root_password

在这里插入图片描述

5 登录GitLab

登录地址:http://10.0.0.203/users/sign_in

在这里插入图片描述

6 修改密码

http://10.0.0.203/-/profile/password/edit

在这里插入图片描述

7 gitlab相关命令

#查看GItLab状态
sudo systemctl status gitlab-runsvdir.service#停止GitLab
sudo systemctl stop gitlab-runsvdir.service#GitLab开机自启状态
sudo systemctl list-unit-files | grep gitlab-runsvdir.service#关闭GitLab开机自启动
sudo systemctl disable gitlab-runsvdir.service#开启GitLab开机自启动
sudo systemctl enable gitlab-runsvdir.service#查看GitLab各服务状态
sudo gitlab-ctl status
http://www.lryc.cn/news/194704.html

相关文章:

  • 主题教育问题清单及整改措施2023年-主题教育对照六个方面个人剖析材料
  • php新手实战:自定义书源下载api
  • 数据结构 - 5(二叉树7000字详解)
  • xshell使用方法(超详细)
  • 【数据库系统概论】第三章关系数据库标准语言SQL
  • 云计算是什么?学习云计算能做什么工作?
  • ES6 -- 模块化(CommonJS、AMD、ES Module)
  • c# xml 参数读取读取的简单使用
  • gym原来是这样用的
  • 百度SEO优化技巧与布局(提升网站排名的5种有效方法)
  • 文案配音软件哪个好?(适合新手使用)
  • excel映射xml方法
  • 2023/10/15
  • Linux系统中如何开启和配置OpenGauss数据库的远程连接
  • 【Docker】Docker网络及容器间通信详解
  • TikTok国际版 使用特网科技Bluestacks模拟器安装方法
  • 【Hello Algorithm】暴力递归到动态规划(四)
  • arm day 8
  • k8s-14 存储之volumes
  • 二分图博弈
  • 【C++】C++11—— 包装器
  • LED显示屏高刷新率和低刷新率有什么区别
  • 国际伦敦银点差费值得吗?
  • 常见的作物模型应用技巧!DSSAT模型、APSIM模型、WOFOST模型与PCSE模型等应用
  • 2023年中国超硬材料制品分析及超硬刀具市场规模分析[图]
  • 使用React、Express实现一个问卷发布/收集系统
  • DDD之上下文映射图(Context Mapping)
  • CountDownLatch的原理
  • Java新特性Stream流详解
  • 关于VScode中一些常用的快捷操作!