建议将Git单独安装在一台服务器上,内存给到 4G 因为 Git 非常吃内存! 非常吃内存! 非常吃内存!
注:如果git页面加载不出来,且不断地出现 502 错误。很可能是因为你的内存不够。
搭建环境:
系统:Cent OS 7 (虚拟机)
配置:1CPU 4G内存
参考地址:https://www.gitlab.com.cn/installation/#centos-7
1. 安装并配置必要的依赖关系
On CentOS 7 (and RedHat/Oracle/Scientific Linux 7), the commands below will also open HTTP and SSH access in the system firewall.
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