添加GitLab镜像源并安装gitlab服务器
安装并配置必要的依赖关系
在CentOS系统上安装所需的依赖:ssh,防火墙,postfix(用于邮件通知) ,wget,以下这些命令也会打开系统防火墙中的HTTP和SSH端口访问。
可用内存建议2G
-
安装ssh
sudo yum install -y curl policycoreutils-python openssh-server
-
将SSH服务设置成开机自启动
sudo systemctl enable sshd
-
启动SSH服务
sudo systemctl start sshd
-
安装防火墙
yum install firewalld systemd -y
-
开启防火墙
service firewalld start
-
添加http服务到firewalld,pemmanent表示永久生效,若不加--permanent系统下次启动后就会失效
sudo firewall-cmd --permanent --add-service=http
-
安装P