首页 > 系统相关 >CentOS7脚本安装GitLab

CentOS7脚本安装GitLab

时间:2022-10-15 00:23:03浏览次数:52  
标签:脚本 gitlab -- GitLab echo CentOS7 https root

#!/bin/bash
yum install -y 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
curl -fsSL https://packages.gitlab.cn/repository/raw/scripts/setup.sh | /bin/bash
EXTERNAL_URL="https://gitlab.example.com" yum install -y gitlab-jh

echo "https://gitlab.example.com"
echo "username: root"
echo "password: "$(awk '/^Password/ {print $2}' /etc/gitlab/initial_root_password)

标签:脚本,gitlab,--,GitLab,echo,CentOS7,https,root
From: https://www.cnblogs.com/joecy/p/16793391.html

相关文章

  • PostgreSQL----四个快速脚本
    PostgreSQL----四个快速脚本运行01_create_table.sql创建示例表;--部门信息表CREATETABLEdepartments(department_idINTEGERNOTNULL--部门编......
  • gitlab项目迁移步骤
    gitlab迁移分服务端和客户端服务端迁移:旧gitlab导出,下载新gitlab新建->导入,导入根据网络速度需要等待一会  用户端操作变更远端地址指向及用户-密码:ssk-......
  • python脚本crontab执行坑
    大概会出现这样的情况。Pythonxxx.py跑的好好的。然后用crontab去执行Python就会发现报错。比如我遇到的这种报错是主要是有诸多的报错,最开始没有注意到这个问题。Fil......
  • 如何编写 Pipeline 脚本
    前言Pipeline编写较为麻烦,为此,DataKit中内置了简单的调试工具,用以辅助大家来编写Pipeline脚本。调试grok和pipeline指定pipeline脚本名称,输入一段文本即可判断......
  • 部署 GitLab、配置 GitLab、CI/CD 概述、部署 Jenkins
    版本控制版本库版本控制是一种记录一个或若干文件内容变化,以便将来查阅特定版本修订情况的系统。简单来说,就是为目录打快照。将来可以回到某一个历史记录点。是一个典型的......
  • bat 脚本 批量去除文件夹下文件名前缀
     delete_info.bat 其中str=0(即为文件想要去除的统一前缀@echooffSetlocalEnabledelayedexpansionset"str=0("for/f"delims="%%iin('dir/b*.*')......
  • centos7设置固定ip,连接互联网
    第一步:将虚拟机网络设置为桥接模式   第二部:启动虚拟机,修改配置文件1.查看windos主机的默认网关:(在虚拟机的windos主机上输入cmd然后ipconfig查看默认网关)2.启动......
  • centos7 中 升级cmake
     001、(base)[root@pc1build]#cat/etc/redhat-release##系统CentOSLinuxrelease7.6.1810(Core)(base)[root@pc1build]#cmake--version##当前......
  • centos7 ansible的简单使用
    0、介绍ansible是新出现的自动化运维工具,基于Python开发,集合了众多运维工具(puppet、cfengine、chef、func、fabric)的优点,实现了批量系统配置、批量程序部署、批量运行命令......
  • centos7 安装kafka3.3.1
    1、安装kafka(要先安装jdk)#进入自己要安装的目录wgethttps://downloads.apache.org/kafka/3.3.1/kafka_2.12-3.3.1.tgz2、解压tar-zxvfkafka_2.12-3.3.1.tgz#改......