GitLabUbuntu搭建部署教程

GitLab部署

操作系统:Ubuntu

内存:8GB

硬盘:64GB

查看系统版本

sh
复制代码
lsb_release -a

下载安装包

官网地址:https://packages.gitlab.com/gitlab/gitlab-ce

Ubuntu/jammy 为例:

sh
复制代码
wget https://packages.gitlab.com/gitlab/gitlab-ce/packages/ubuntu/jammy/gitlab-ce_16.7.0-ce.0_amd64.deb/download.deb

安装GitLab依赖

sh
复制代码
sudo apt-get install -y curl openssh-server ca-certificates
sh
复制代码
sudo apt-get install -y postfix

安装

sh
复制代码
sudo dpkg -i downloal.deb

编辑文件,修改成自己的网址地址

sh
复制代码
sudo vim /etc/gitlab/gitlab.rb

重新启动GitLab

sh
复制代码
sudo gitlab-ctl reconfigure

修改root密码

sh
复制代码
sudo gitlab-rails console
sh
复制代码
user=User.where(id:1).first user.password='密码' user.password_confirmation='密码' user.save! quit

重启服务器!!!

0个评论
点击登录,快来和大家讨论吧~
表情
图片
暂无评论
下载 APP