手把手教你搭建GitLab
1.安装SSH
sudo yum install -y curl policycoreutils-pythonopenssh-server
2.启动SSH
sudo systemctl start sshd
3.设置SSH服务自动启动
sudo systemctl enable sshd
4.安装防火墙
sudo yum install firewalld systemd -y
5.开启防火墙
service firewalld start
如果报错Redirecting to /bin/systemctl start firewalld.service
请用systemctl方式启动:
sudo systemctl start firewalld
6.添加http服务到firewalld
pemmanent表示永久生效
不加–permanent在系统下次启动后就会失效。
sudo firewall-cmd --permanent --add-service=http