一、安装gitlab
sudo yum install curl policycoreutils-python openssh-server openssh-clients
sudo systemctl enable sshd
sudo systemctl start sshd
sudo firewall-cmd --permanent --add-service=http
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
sudo yum install gitlab-ce
二、配置gitlab
先简单配置IP,启动gitlab后,报错:502
重新配置IP+端口,再次测试
.修改两个参数的端口,并去掉注释
# gitlab_workhorse['auth_backend'] = "http://localhost:9988"
# puma['port'] = 9988
重启gitlab , sudo gitlab-ctl restart
仍然报错,查看日志:
sudo gitlab-ctl tail
内存不够导致,服务器的配置太低。
解决配置问题即可。