一、 搭建虚拟机,导入ubantu镜像(傻瓜式操作即可)
- 虚拟机地址:https://www.vmware.com
- ubantu地址:https://www.ubuntu.com
- 导入镜像,找到虚拟机的存储栏目,导入 ubantu 镜像
二、安装gitlab
sudo apt-get update
sudo apt-get install -y curl openssh-server ca-certificates
sudo apt-get install -y postfix
curl https://packages.gitlab.com/gpg.key 2> /dev/null | sudo apt-key add - &>/dev/null
- 根据ubantu的版本,参考这个网址:https://mirror.tuna.tsinghua.edu.cn/help/gitlab-ce/;将以下内容写入目标文件:etc/apt/sources.list.d/gitlab-ce.list
# 进入目标文件
sudo i
vim etc/apt/sources.list.d/gitlab-ce.list
# 写入以下内容
deb https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/ubuntu bionic main
sudo apt-get update
sudo apt-get install gitlab-ce
sudo gitlab-ctl reconfigure
sudo gitlab-ctl start