效果
image.png环境
- centos7
- 4G以上内存
安装基础软件
sudo yum install -y git vim gcc glibc-static telnet
sudo yum install -y curl policycoreutils-python openssh-server
sudo systemctl enable sshd
sudo systemctl start sshd
sudo yum install postfix
sudo systemctl enable postfix
sudo systemctl start postfix
切国内源
- 新建 /etc/yum.repos.d/gitlab-ce.repo 文件
[gitlab-ce]
name=Gitlab CE Repository
baseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el$releasever/
gpgcheck=0
enabled=1
开始安装
sudo EXTERNAL_URL="http://www.syappmp.com" yum install -y gitlab-ce
sudo gitlab-ctl reconfigure
域名要能解析到你安装的这台机器.
网友评论