银河麒麟服务器操作系统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账户登录成功

相关推荐
AlfredZhao1 天前
生产环境里,为什么不建议把普通端口直接暴露到公网?
linux·https·443·80
戴为沐2 天前
Linux内存扩容指南
linux
zylyehuo3 天前
Linux 彻底且安全地删除文件
linux
用户805533698033 天前
主线 U-Boot 上 RK3506:和闭源 rkbin 拔河的三个隐性契约
linux·嵌入式
用户034095297913 天前
linux fcitx 5 雾凇拼音 设置在中文输入法下仍然输入英文标点
linux
Web3探索者5 天前
可视化服务器管理和传统命令行区别是什么?新手教程:Linux 运维到底该用图形界面还是 SSH 命令行?
linux·ssh
zylyehuo5 天前
Linux系统中网线与USB网络共享冲突
linux
Sokach10156 天前
Linux Shell 脚本从零到能用:一个新手的一天学习总结
linux
AlfredZhao7 天前
Docker 容器时区不对,`timedatectl` 不存在怎么办?
linux·timezone
zzzzzz3108 天前
9K Star 炸裂开源!这个 C 语言写的代码知识图谱,把 Linux 内核索引压缩到了 3 分钟
linux·服务器·sql