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个评论
全部评论
点击登录,快来和大家讨论吧~
表情
图片
暂无评论
