gitlab搭建-ubuntu

1. 参考文档

  GitLab - wiki 页面 - 菜鸟教程

  GitLab 零基础入门指南:从安装到项目管理全流程 - 技术栈

2. 搭建过程

2.1. 下载 gitlab 社区版本

  https://packages.gitlab.com/gitlab/gitlab-ce

2.2. 安装

  sudo dpkg -i gitlab-ce_18.4.5-ce.0_amd64.deb

2.3. 配置地址和端口

  vim /etc/gitlab/gitlab.rb

  # Web 服务端口配置: external_url 'http://192.168.3.254:100'

  # 服务端口: puma['port'] = 8080

2.4. 设置、启动

  gitlab-ctl reconfigure

  gitlab-ctl restart

2.5. 查看密码、登录

  sudo cat /etc/gitlab/initial_root_password

posted @ 2025-12-11 16:16  张大帅哥  阅读(3)  评论(0)    收藏  举报