Centos7 搭建 GitLab
一:安装sshd
1.1 安装sshd
yum install -y curl policycoreutils-python openssh-server
2.2 接下来我们启用并启动 sshd:
systemctl enable sshd
systemctl start sshd
2.3 接下来我们配置下防火墙:
2.3.1 打开 /etc/sysctl.conf 文件,在文件最后添加新的一行
net.ipv4.ip_forward = 1
vim /etc/sysctl.conf
2.3.2 启用并启动防火墙