CentOS7.2 install GitLab server

01. yum install -y curl policycoreutils-python openssh-server
02. systemctl enable sshd
03. systemctl start sshd
04. wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-13.4.2-ce.0.el7.x86_64.rpm
05. rpm -i gitlab-ce-13.4.2-ce.0.el7.x86_64.rpm 

06. Change the external_url 'http://106.75.252.72:80' in the configuration file /etc/gitlab/gitlab.rb
07. firewall-cmd --permanent --add-port=80/tcp
08. firewall-cmd -- reload
09. gitlab-ctl reconfigure
10. gitlab-ctl restart

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324361106&siteId=291194637