操做系统:centos7.xpython
yum install -y curl policycoreutils-python openssh-server
systemctl enable sshd systemctl start sshd
设置配置git
echo "net.ipv4.ip_forward = 1" >> /etc/sysctl.conf
启用并启动防火墙vim
systemctl enable firewalld systemctl start firewalld
配置下载源centos
$vi /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
安装gitlab-cessh
$yum install -y gitlab-ce
$vim /etc/gitlab/gitlab.rb external_url 'http://work.myteam.com'
sudo gitlab-ctl reconfigure