目录
简介
GitLab是一个基于Git的代码托管、版本控制和协作开发平台;
极狐GitLab 文档 | 极狐GitLabLearn how to use and administer GitLab, the most scalable Git-based fully integrated platform for software development.https://gitlab.cn/docs/jh/
组件
Nginx、postgresql、redis、unicorn、sidekiq。这用gitlab-ctl status命令也可查看到。
安装gitlab
确认基础环境
(curl;policycoreutils;openssh-server;openssh-clients)验证命令:
curl:
curl -V
policycoreutils:
sestatus
openssh-server:
systemctl status sshd
openssh-clients:
ssh
若不存在执行安装命令:
yum -y install curl policycoreutils openssh-server openssh-clients
设置防火墙
1、确认firewall是否安装
rpm -q firewalld
2、若未安装执行命令
sudo dnf install firewalld
3、确认firewall状态
sudo systemctl status firewalld
4、若已安装可能因为firewall不在系统变量中
/usr/bin/firewall-cmd --state
5、添加http服务允许通过防火墙并永久配置到配置文件中
/usr/bin/firewall-cmd --permanent --add-service=http
6、重新加载防火墙
systemctl reload firewalld