The company needs to build gitlab for the project to use, there is no way (⊙﹏⊙), only I built it, here to record the construction process and problems encountered (● ˇ∀ˇ ●):
-
Download the git-ee image: there are many versions, I downloaded the 12.0.0 version
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ee/yum/el7/gitlab-ee-12.0.0-ee.0.el7.x86_64.rpm
-
Open the firewall and HTTP access, execute the following commands in order:
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 firewall-cmd --permanent --add-service=http
There may be FirewallD is not running
problems during execution : meaning that the firewall is not turned on.
Solution, execute the command: systemctl start firewalld
turn on the firewall, the screenshot is as follows:
- Install Postfix to send notification emails, and execute the commands in sequence:
sudo yum install postfix sudo systemctl enable postfix sudo systemctl start postfix
- Installation package installation, I downloaded the installation package under / usr / local / git, and directly installed:
rpm -i gitlab-ee-12.0.0-ee.0.el7.x86_64.rpm
- Successful installation:
- Configure the url and port number:
URL configuration:
执行命令:vim /etc/gitlab/gitlab.rb
找到 external_url 'http://gitlab.example.com'
替换成你的Linux服务器的地址比如说:external_url 'http://192.168.1.1'
Port number configuration:
和url同一个文件,找到 # unicorn['port'] = 8080
替换成 :unicorn['port'] = 10000 //随便一个端口号
Screenshot below:
- Reset and start, followed by
gitlab-ctl reconfigure gitlab-ctl restart
- Visit the url you set: you will enter this page, this page is to set the root account password, and the installation is complete