首页 > 其他分享 >GitLab安装

GitLab安装

时间:2023-02-21 22:25:09浏览次数:47  
标签:GitLab gitlab ce yum 安装 el7

1、首先在 GitLab 国内源下载 GitLab 的安装包:https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/

wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-15.6.1-ce.0.el7.x86_64.rpm  
2、下载GitLab rpm包,之后通过yum 直接安装即可
yum install gitlab-ce-15.6.1-ce.0.el7.x86_64.rpm -y

3、安装完成后,需要修改几处配置

vim /etc/gitlab/gitlab.rb
  • 将 external_url 更改为自己的发布地址,可以是服务器的 IP,也可以是一个可被解析的域名:

  •  如果已经安装了 Prometheus 监控平台, GitLab 自带的 Prometheus 可以无需安装,

  后期可以安装 GitLab Exporter 即可进行监控。关闭 Prometheus 插件(可选)

  • 更改完成后需要重新加载配置文件
gitlab-ctl reconfigur
  • 加载配置完成以后,可以看到如图信息

  •  通过浏览器访问GitLab,账号 root,默认密码在/etc/gitlab/initial_root_password

 

注:/etc/gitlab/initial_root_password 里面的密码只保留24小时,24小时候会删除。登录后记得修改密码

 

 

 

标签:GitLab,gitlab,ce,yum,安装,el7
From: https://www.cnblogs.com/albert919/p/16951217.html

相关文章

  • Jenkins安装部署
    一、Jenkins安装说明:官网:https://www.jenkins.io/zh/download/清华大学开源镜像站:https://mirrors.tuna.tsinghua.edu.cn/jenkins/redhat/Jenkins是开源CI&......
  • redis安装使用
    1、redis五大数据类型,开发必会的技能string字符串类型hash哈希类型,如同Python的dict(字典)Set无序集合Zset有序集合List双向列队,向右插入数据,向左,右提......
  • Android Studio的下载与安装
    一、下载下载官网:DownloadAndroidStudio&AppTools-AndroidDevelopers  点击绿色下载 ......
  • 安装gitlab
    1.配置yum源vim/etc/yum.repos.d/gitlab-ce.repo内容[gitlab-ce]name=GitlabCERepositorybaseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gpg......
  • Rocky Linux安装
    1.下载VirtualBox并安装https://www.virtualbox.org/wiki/Downloads2.下载RockyLinux选择Rocky-9.1-x86_64-dvd.iso镜像官网https://rockylinux.org/download......
  • poetry安装升级和换源
    一、安装pipinstall-U--userpippipxpipxinstallpoetrypoetry--version#Poetry(version1.3.2) 二、换源1.安装插件(https://github.com/arcesium/poe......
  • consul 安装使用
    安装dockerrun-d-p8500:8500-p8300:8300-p8301:8301-p8302:8302-p8600:8600/udpconsulconsulagent-dev-client=0.0.0.0 访问地址:http://192.168.244.......
  • 部署堡垒机2——安装MySQL8.0.32或8.0.28+
    MySQL的三大版本a)MySQLEnterpriseEdition:企业版本(付费)b)MySQLClusterCGE:高级集群版(收费)c)MySQLCommunityServer:社区版(开源) 登录MySQL官网https://www.mysql.com/d......
  • [Android 逆向]绕过小米需插卡安装apk限制
    1.确保自己手机是root的了2.给手机安装busybox,使可以用vi编辑文件安装方法:0.adbshellgetpropro.product.cpu.abi获得cpu架构信息arm64-v8a1.下载https......
  • python和pycharm的安装与使用
    Python如何下载与安装?最新版本不具备最好的兼容性与稳定性 系统解释器建议一个版本的就行 建议安装3.7-3.10之间的版本 安装时注意你的操作系统的位数64位操作系......