写在前面:
文档最后更新日期2019/12/11
服务器至少需要4G内存!!!!!很重要,2G只能非常非常卡的运行会出很多问题,你还会以为是bug!
至少4G!!!至少4G!!!至少4G!!!不用想了,至少4G!
坑:开启了端口却访问不到,可以试试开启gitlab后再关掉防火墙
开始安装:
1.安装ssh,安装命令:sudo yum install -y curl policycoreutils-pythonopenssh-server
2.将SSH服务设置成开机自启动,安装命令:sudo systemctl enable sshd
3.启动SSH服务,安装命令:sudo systemctl start sshd
4.一定要开启防火墙,命令:service firewalld start
5.运行http服务到firewalld,命令:pemmanent表示永久生效,若不加--permanent系统下次启动后就会失效。
sudo firewall-cmd --permanent --add-service=http
6.重启防火墙,配置生效:sudo systemctl reload firewalld
7.wget下载gitlab
wget