GIT Gitlab Environment setup

Source: Internet
Author: User

Gradually eliminated Gitosis, gitolite
At present more use Gitlab

Vi/etc/yum.repos.d/gitlab-ce.repo

[Gitlab-ce]
Name=gitlab-ce
baseurl=http://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7
repo_gpgcheck=0
Gpgcheck=0
enabled=1
Gpgkey=https://packages.gitlab.com/gpg.key

sudo yum Makecache
sudo yum install gitlab-ce Modify Configuration

Vim/etc/gitlab/gitlab.rb

External_url= ' http://git.example.com '               //modify to your own IP address or your own domain name, and then compile, this will be done with chef,
about Mailbox
gitlab_rails[' smtp_enable ' = True
gitlab_rails[' smtp_address '] = "smtp.163.com"
gitlab_rails[' Smtp_port '] = 
gitlab_rails[' smtp_user_name '] = "xxx@163.com"
gitlab_rails[' smtp_password '] = "xxx"
gitlab_rails[ ' Smtp_domain '] = "163.com"
gitlab_rails[' smtp_authentication ' =: Login
gitlab_rails[' Smtp_enable_starttls _auto '] = True
Modify the sender of the Gitlab configuration
gitlab_rails[' gitlab_email_from ' = "xxx@163.com"
user["git_user_email"] = "xxx@163.com"

sudo gitlab-ctl reconfigure add Ssh-key after startup

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.