Linux environment Gitlab installation and configuration

Source: Internet
Author: User

1. Background

Recent company source control tools from SVN to git, so to deploy Gitlab on the server, a total of two servers deployed, one is Ubuntu server 17.04, one is Centos7. In the process of deployment encountered a lot of problems, found that Linux through the command to go directly to the Gitlab official Web download program is not successful, whether on Ubuntu or CentOS. Later can only go to the Gitlab official website to manually download the installation package, and then go to Linux by command to perform to install.

2. Software download

(1) Gitlab official website

Website address: https://about.gitlab.com/downloads/

(2) Mirror station

Software address: https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/ubuntu/pool/xenial/main/g/gitlab-ce/, but sometimes the mirror station will not open, But the speed must be much faster than the official website.

(3) Ubuntu server 17.04 download version is Gitlab-ce_9.5.6-ce.0_amd64.deb

(4) Centos7 download version is gitlab-ce-9.5.6-ce.0.el7.x86_64.rpm

3. Installation

(1) Ubuntu environment

<1>$ apt-get Install Curl Openssh-server ca-certificates postfix

<2> Configure Postfix Mailbox

<3> use command: $ dpkg-i gitlab-ce_9.5.6-ce.0_amd64.deb

<4> appeared It looks like ... Indicates a successful installation!

<5> Configuration Gitlab

Mkdir-p/etc/gitlabtouch/etc/gitlab/gitlab.rbchmod 600/etc/gitlab/gitlab.rbvim/etc/gitlab/gitlab.rb

<6> change External_url to the domain name or IP address of the deployment machine

<7>$ Gitlab-ctl Reconfigure

<8>$ gitlab-ctl Status

<9> installation is complete.

(2) CentOS Environment

<1> configuration Postfix mailbox: $ yum-y Install policycoreutils openssh-server openssh-clients postfix

<2> installation gitlab:$ Rpm-i gitlab-ce-9.5.6-ce.0.el7.x86_64.rpm

<3> Modify Gitlab configuration file Specify server IP and custom port

Command: vim/etc/gitlab/gitlab.rb, modify External_url

<4> Execute Commands gitlab-ctl reconfigure, gitlab-ctl restart

<5> installation is complete.

4. Reminders

(1) There is a problem with the Mailbox Auto alert function

(2) Gitlab will occupy 8080 ports, we recommend that tomcat on the server modify the lower number, otherwise there will be a problem.

(3) Access the host IP to access the Gitlab home page.

Linux environment Gitlab installation and configuration

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.