Installing Gitlab in Ubuntu 14

Source: Internet
Author: User

Installed in Ubuntu 14

Use a domestic installation source image to speed up installation. Modify/etc/apt/sources.list.d/gitlab-ce.list, add the following line
Deb Https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/debian Jessie Main


To start the installation:
# Install dependent packages
sudo apt-get install curl openssh-server ca-certificates postfix
# Install GitLab Community Edition
Apt-get Install Gitlab-ce
# Initialize, auto start GitLab after initialization
sudo gitlab-ctl reconfigure


Installation in CentOS 6
With a domestic image installation, create a new/etc/yum.repos.d/gitlab-ce.repo and add the following:
[Gitlab-ce]
Name=gitlab-ce
Baseurl=http://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el6
Repo_gpgcheck=0
Gpgcheck=0
Enabled=1
Gpgkey=https://packages.gitlab.com/gpg.key
Installation steps:

# Install dependent packages
sudo yum install Curl openssh-server openssh-clients postfix Cronie
# Start Postfix Mail Service
sudo service postfix start
# check Postfix
sudo chkconfig postfix on
# Install GitLab Community Edition
sudo yum install Gitlab-ce
# Initialize GitLab
sudo gitlab-ctl reconfigure


Modify Host
Add access to host, modify/ETC/GITLAB/GITLAB.RB's External_url
External_url ' http://git.home.com '
Vi/etc/hosts, adding host mappings
127.0.0.1 git.home.com
Each time you modify/ETC/GITLAB/GITLAB.RB, run the following command to have the configuration take effect


sudo gitlab-ctl reconfigure
Configure the host for this machine, such as: 192.168.113.59 git.home.com. Finally, open the URL in the browser http://git.home.com

Login user name: root
Password: 5ivel!fe

Ps:

① (memory gives the 4G CPU to 4 cores), compare eating system resources.

②jenkins+git


This article is from the "7835882" blog, please be sure to keep this source http://crfsz.blog.51cto.com/7835882/1936486

Installing Gitlab in Ubuntu 14

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.