89291041 2019-11-04
// 安装ssh sudo yum install curl policycoreutils openssh-server openssh-clients // 将SSH服务设置成开机自启动 sudo systemctl enable sshd // 启动SSH服务 sudo systemctl start sshd // 邮件通知服务-postfix sudo yum install postfix sudo systemctl enable postfix sudo systemctl start postfix // 安装防火墙-firewalld sudo yum install firewalld // 开启防火墙 service firewalld start // 增加防火墙规则(添加http服务到firewalld, pemmanent表示永久生效,若不加--permanent系统下次启动后就会失效) sudo firewall-cmd --permanent --add-service=http // 重启防火墙 sudo systemctl reload firewalld // 查看防火墙状态 systemctl status firewalld
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash sudo yum install gitlab-ce
编辑文件