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