Gitlab server construction and code warehouse creation practice

1. Deploy the community version of gitlab

Install gitlab's dependencies:

yum install -y curl openssh-server openssh-clients postfix cronie policycoreutils-python // 10.x以后开始依赖policycoreutils-python

Start postfix and set it to start on boot:

systemctl start postfix
systemctl enable postfix

Set up the firewall:

yum install iptables-services
iptables -F
service iptables save
systemctl  stop firewalld
systemctl  disable firewalld

Get the rpm package of gitlab, the domestic link:

https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-12.1.6-ce.0.el7.x86_64.rpm

Or official download:

https://packages.gitlab.com/gitlab/gitlab-ce/

Guess you like

Origin blog.csdn.net/qq_35029061/article/details/131996867