连小白都会gitlab部署,gitlab是一个代码托管平台,集成代码储存,版本控制,CI/CD等多种功能,
安装部署(EXTERNAL_UR换成自己的内网地址哦)
sudo yum install -y curl policycoreutils-python openssh-server
sudo systemctl enable sshd
sudo systemctl start sshd
sudo firewall-cmd --permanent --add-service=http
sudo systemctl reload firewalld
sudo yum install postfix
sudo systemctl enable postfix
sudo systemctl start postfix
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash
sudo EXTERNAL_URL="http://192.168.1.105" yum install -y gitlab-ee
#启动
sudo gitlab-ctl reconfigure
使用安装的服务器ip地址就可以访问啦
重启
#重启
gitlab-ctl restart