首页 > 其他分享 >GitLab部署安装

GitLab部署安装

时间:2022-11-16 22:13:18浏览次数:80  
标签:GitLab 部署 gitlab -- 组件 https ctl 安装

GitLab官方:
GitLab官方部署文档:

1、安装依赖 && 关闭防火墙

yum -y install curl policycoreutils-python openssh-server perl
systemctl enable sshd
systemctl start sshd
firewall-cmd --permanent --add-service=http
firewall-cmd --permanent --add-service=https
systemctl reload firewalld

2、配置软件镜像源

curl -fsSL https://packages.gitlab.cn/repository/raw/scripts/setup.sh | /bin/bash

3、安装gitlab 包比较大需要耐心等待一会~

sudo EXTERNAL_URL="https://10.0.24.5" yum install -y gitlab-jh

安装完成后 配置文件在 /etc/gitlab/gitlab.rb 位置
4、启动gitlab

gitlab-ctl start

其他常用gitlab命令如下:

gitlab-ctl start    # 启动所有组件
gitlab-ctl stop     # 停止所有组件
gitlab-ctl restart  # 重启所有组件
gitlab-ctl status   # 查看组件状态
gitlab-ctl reconfigure  # 启动服务
gitlab-ctl tail         # 查看日志

5、修改默认密码
默认gitlab会随机生成一个免密到 /etc/gitlab/initial_root_password 文件内,仅用于第一次登入,此文件24小时内删除,所以需要尽快修改密码

cat /etc/gitlab/initial_root_password |grep -w Password: 
Password: a4bwOH8fh6TvcFKFdqb0MNu3G2BqBgNyXzzJyZxUcnY=

浏览器访问: https://localhost 注意是https
默认管理用户是 root



更改后 往下滑 点击 保存更改

6、取消注册功能

更改后 往下滑 点击 保存更改

标签:GitLab,部署,gitlab,--,组件,https,ctl,安装
From: https://www.cnblogs.com/qinziteng/p/16897506.html

相关文章

  • 时刻追逐常新前沿技术 VWmare ESXI 8里安装centos stream 9
    时刻追逐常新前沿技术VWmareESXI8里安装centosstream9在2022年底、大家都还在使用VWmareESXI6.5、centos7时,我就想大胆的尝试一下VWmareESXI8再到最新的ESXI......
  • 在内网部署支持ssl的docker私仓
    目录registry更换来此加密ssl证书生效配置修改配置文件从114缓存查询数据可以dig无法ping查看已经区域解析,并添加新的解析项在linux安装局域网certrn......
  • Arch Linux 的安装
    ArchLinux的安装作者:Grey原文地址:博客园:ArchLinux的安装CSDN:ArchLinux的安装版本ArchLinux:2022.07.01VMwareworkstation:16.2安装步骤下载ArchLinux并......
  • Docker-compose 安装 Nginx PHP MySQL
    1、创建mkdir-p/docker/wwwmkdir-p/docker/nginx/conf.d/2、配置vimnginx/conf.d/default.confserver{listen80;server_namelocalhost;location/{......
  • Centos 7 安装 docker-compose
    1、下载curl-Lhttps://github.com/docker/compose/releases\/download/1.21.2/docker-compose-`uname-s`-`uname-m`-o/usr/local/bin/docker-compose可能上面的下载比......
  • CentOS 7 安装 Ansible
    ansible是新出现的自动化运维工具,基于Python开发,集合了众多运维工具(puppet、cfengine、chef、func、fabric)的优点,实现了批量系统配置、批量程序部署、批量运行命令等功能。......
  • CentOS 7 Tunctl 安装 虚拟网卡
    在计算机网络中,TUN与TAP是操作系统内核中的虚拟网络设备。不同于普通靠硬件网路板卡实现的设备,这些虚拟的网络设备全部用软件实现,并向运行于操作系统上的软件提供与硬件的网......
  • fedora 37 xface 安装 fctix5
    fcitx5官网https://www.fcitx-im.org 给出在fedora下安装fcitx的方式:方式一:通过dnf安装1.sudodnfsearchfcitx5 2.sudodnfinstallfcitx53.sudodnf......
  • 使用 Nginx 如何部署 web 项目
    第一步:前往Nginx官方下载Nginx资源包,建议下载Stableversion(长期稳定版本)   第二步:将Nginx压缩包解压到本地目录中(D:\Tools)   第三步:进入到已经解压......
  • Centos 7 安装 Zabbix 3.4
    1、下载阿里云zabbix yum源rpm-ivhhttps://mirrors.aliyun.com/zabbix/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-1.el7.centos.noarch.rpm2、配置vim/etc/yum.r......