操做系統: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