一键安装 gitlab 在 cent os 上

修改EXTERNAL_URL 为自己的路径, 复制如下所有命令,粘贴在命令行上,可实现一键安装成功,在流量器中输入url就可以访问了。方便简单

sudo yum install -y curl policycoreutils-python openssh-server
sudo systemctl enable sshd
sudo systemctl start sshd
sudo firewall-cmd –permanent –add-service=http
sudo systemctl reload firewalld
sudo yum install postfix
sudo systemctl enable postfix
sudo systemctl start postfix
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash
sudo EXTERNAL_URL=”http://gitlab.microhome.cn” yum install -y gitlab-ee

 

 

确认GitLab版本号

运行如下命令,查看GitLab版本号

cat /opt/gitlab/embedded/service/gitlab-rails/VERSION