Linux installation gitlab (1) installation articles

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 (● ˇ∀ˇ ●):

  1. 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
    
    
  2. 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=httpThere may be FirewallD is not runningproblems during execution : meaning that the firewall is not turned on.
Insert picture description here
Solution, execute the command: systemctl start firewalldturn on the firewall, the screenshot is as follows:
Insert picture description here

  1. Install Postfix to send notification emails, and execute the commands in sequence:
    sudo yum install postfix
    sudo systemctl enable postfix
    sudo systemctl start postfix
    
  2. 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
    
  3. Successful installation:
    Insert picture description here
  4. 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:
Insert picture description here

  1. Reset and start, followed by
    gitlab-ctl reconfigure
    gitlab-ctl restart
    
  2. Visit the url you set: you will enter this page, this page is to set the root account password, and the installation is complete
    Insert picture description here
Published 104 original articles · praised 18 · visits 8622

Guess you like

Origin blog.csdn.net/y368769/article/details/103954034