Centos7 install gitlab
Close selinux
Sed-I "s/SELINUX=enforcing/SELINUX=disabled/g" / etc/selinux/config
Setenforce 0 turn off the firewall
Systemctl disable firewalld.service
Systemctl stop firewalld.service
Or set the firewall to allow access to port 80
Firewall-cmd-zone=public-add-port=80/tcp-permanent
Firewall-cmd-zone=public-add-port=80/udp-permanent
Firewall-cmd-reload downloads gitlab feeds
Curl-s https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
Install gitlab
Yum install gitlab-ce-12.4.2-ce.0.el7.x86_64
Optimize gitlab
Vim / etc/gitlab/gitlab.rb
External_url 'http://192.168.11.247' # I didn't build dns, just fill in ip
Unicorn ['worker_timeout'] = 60unicorn [' worker_processes'] = 2 # officially recommended cpu core plus 1unicorn ['worker_memory_limit_min'] = "200 * 1