云服务器如何搭建和部署GitLab(CentOS7)? 基于云服务器如何搭建GitLab代码托管系统?
1 安装依赖包
yum install -y curl policycoreutils-python openssh-server
systemctl enable sshd
systemctl start sshd
firewall-cmd --permanent --add-service=http(在aliyun ECS 安全规则组里面设置,这里可以不用设置)
systemctl reload firewalld(同上)
2 下载并执行安装gitlab的shell文件
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash
3 设置自己的域名并且安装gitlab-ee
sudo EXTERNAL_URL="http://gitlab.example.com" yum install -y gitlab-ee
4 安装完成
集结各类场景实战经验,助你开发运维畅行无忧