GitLab installation-Ubuntu 14.04 LTS

Source: Internet
Author: User

GitLab installation-Ubuntu 14.04 LTS

GitLab is an open-source project used for warehouse management systems. A web service built on Git as a code management tool. It provides Git version control, code check, Bug tracking, and Wiki. It can perform security authentication and authorization through LDAP or the Active Directory. A single GitLab can support 25000 users, and it can also achieve high availability by setting multiple servers. GitLab is not included in the Ubuntu14.04 software library, but GitLab is also very convenient to install. The following describes how to install GitLab:

First, follow the GitLab official document and enter the following command:
Https://downloads-packages.s3.amazonaws.com/ubuntu-14.04/gitlab_7.0.0-omnibus-1_amd64.deb wget-c
Sudo apt-get install openssh-server
Sudo apt-get install postfix
Sudo dpkg-I gitlab_7.0.0-omnibus-1_amd64.deb

Because the download speed of the GitLab package is very slow and breakpoint occurs frequently, the-c parameter is added after wget. The installation of openssh-server can be removed, because I usually select and install this service when installing the server. After all, you need to log on to the server remotely! Postfix is a mail service. If this service is not installed, you can also install similar mail services such as Sendmail or Exim (if there is an email server, this step can be ignored, you can use gitlab-ctl to reconfigure the SMTP service ).

Next, set the GitLab Domain Name:
Sudo mkdir-p/etc/gitlab
Sudo touch/etc/gitlab. rb
Sudo chmod 600/etc/gitlab. rb
Sudo vi/etc/gitlab. rb

Then add a domain name Configuration:
External_url "# If Postfix or Sendmail is not installed, set the following content according to the SMTP server parameters as the mail client does.
Gitlab_rails ['smtp _ enable'] = true
Gitlab_rails ['smtp _ address'] = "smtp. server"
Githute_rails ['smtp _ port'] = 456
Gitlab_rails ['smtp _ user_name '] = "smtp user"
Gitlab_rails ['smtp _ password'] = "smtp password"
Gitlab_rails ['smtp _ domain '] = "example.com"
Gitlab_rails ['smtp _ authentication '] = "login"
Gitlab_rails ['smtp _ enable_starttls_auto'] = true

Then you can reconfigure GitLab:
Sudo gitlab-ctl reconfigure

Note: As described in most GitLab configuration files (such as gitlab. yml or database. yml:
# This file is managed by gitlab-ctl. Manual changes will be
# Erased! To change the contents below, edit/etc/gitlab. rb
# And run 'sudo gitlab-ctl reconfigure '.

Most configuration changes in GitLab need to be set in/etc/gitlab. rb, and then run sudo gitlab-ctl reconfigure to modify the changes.

If you are interested in how to configure gitlab. rb, refer to the https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md URL, which is basically clear.

Next, check whether the installation is successful. Enter the following command:
Sudo gitlab-ctl status
[Sudo] password for firehare:
Run: nginx: (pid 13334) 16103 s; run: log: (pid 4244) 22211 s
Run: postgresql: (pid 4153) 22280 s; run: log: (pid 4152) 22280 s
Run: redis: (pid 4070) 22291 s; run: log: (pid 4069) 22291 s
Run: sidekiq: (pid 4234) 22212 s; run: log: (pid 4233) 22212 s
Run: unicorn: (pid 4212) 22218 s; run: log: (pid 4211) 22218 s

If similar results are obtained, the installation is successful.

Because the GitLab package comes with Ruby, Rails, and PostgreSQL, you do not need to consider compatibility issues as before. Finally, you only need to directly log on to the server where GitLab is located, and use the account root and password 5 iveL! Fe to log on to GitLab. Logging on to GitLab for the first time will force you to reset your password and then you can enter GitLab.

GitLab Installation Guide in Ubuntu 14.04

How to install Gitlab in Ubuntu Server 14.04

Install GitLab in Chinese with CentOS source code

Install GitLab on Ubuntu 12.04

GitLab 5.3 upgrade considerations

Deploy GitLab on CentOS (self-managed Git project repository)

Install GitLab 6.0.2 on RHEL6/CentOS6/ScientificLinux6

CentOS 6.5 GitLab installation tutorial and Related Problems

GitLab details: click here
GitLab: click here

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.