银河麒麟服务器操作系统V10-SP1部署gitlab服务

  1. 安装依赖

    yum -y install policycoreutils-python openssh-server openssh-clients postfix cronie curl

  2. 下载gitlab-ce-15.4.2-ce.0.el8.x86_64.rpm安装包。

    wget --content-disposition https://packages.gitlab.com/gitlab/gitlab-ce/packages/el/8/gitlab-ce-15.4.2-ce.0.el8.x86_64.rpm/download.rpm

(其他版本的下载链接 https://packages.gitlab.com/gitlab/gitlab-ce ,注意需要下载el8版本的。)

  1. 安装gitlab

    rpm -ivh gitlab-ce-15.4.2-ce.0.el8.x86_64.rpm

出现如下界面说明安装成功:

  1. 修改web服务端口
sh 复制代码
vim /etc/gitlab/gitlab.rb

修改以下字段的ip和端口:

复制代码
external_url 'http://10.0.0.106:8088'
  1. 配置生效

    gitlab-ctl reconfigure

  2. 查看用户名密码

    cat /etc/gitlab/initial_root_password

  1. 开放端口

    firewall-cmd --permanent --add-port=8088/tcp
    firewall-cmd --reload

  2. 访问web端,可以使用root账户登录成功

相关推荐
小王努力学编程几秒前
【Linux网络编程】UDP Echo Server的实现
linux·运维·服务器·网络·c++·学习·udp
想睡hhh几秒前
Leetcode12 13——罗马数字与整数之间的转换
linux·运维·服务器
二狗哈4 分钟前
go游戏后端开发31:麻将游戏的碰牌与胡牌逻辑
服务器·游戏·golang
阿里云云原生4 分钟前
如何使用通义灵码玩转Linux - AI编程助手提升效率
linux
Peter_chq6 分钟前
selenium快速入门
linux·开发语言·chrome·python·selenium
·云扬·6 分钟前
【BUG】远程连接阿里云服务器上的redis报错
服务器·阿里云·bug
Dklau-c34 分钟前
『Linux_网络』 第一章 网络基础概念
linux·服务器·网络
Pseudo…34 分钟前
linux shell编程规范与变量(一)
linux·运维·服务器
Gold Steps.37 分钟前
真实企业级K8S故障案例:ETCD集群断电恢复与数据保障实践
服务器·k8s·高可用·故障恢复
xhzth7091140 分钟前
kali安装 老版本的frida
linux