Installation and configuration of Gitlab in Ubuntu-12.04.2

Source: Internet
Author: User
Tags character set config mail svn create database ruby on rails

The company was using SVN for project management, because SVN's code base is centrally managed, does not support offline updates, and later moved SVN to git, where Git is a distributed system that allows users to view, write, and submit code from a git server. Later, because Git does not have a Web page, all operations are in the background operation, in contrast, Gitlab is a high-end brim on the level of GIT project management software, users can add through the Web page, delete items | users | Sshkey and so on, and can be viewed through the browser, modify the source code.
Gitlab Introduction: Gitlab is an Open-source project management program developed with Ruby on Rails that can be accessed through a web interface to open or private projects. It has a similar function with GitHub to explore source code, manage defects, and annotate. Gitlab Official documentation Support Debian/ubuntu system, my gitlab server is ubuntu-12.04.2, please check Gitlab official installation document for specific installation.

1 Create a Gitlabhq_production database and authorize it on MySQL.

#创建gitlabhq_production数据库并授权
CREATE DATABASE IF not EXISTS ' gitlabhq_production ' DEFAULT CHARACTER SET ' UTF8 ' COLLATE
' utf8_unicode_ci ';
GRANT SELECT, LOCK TABLES, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER on
' gitlabhq_production '. * to ' Gitlab ' @ 192.168.1.230 ' identified by ' gitlab!@# ';
#修改gitlab数据库配置文件
cd Gitlab
sudo-u git cp config/database.yml.mysql config/database.yml
sudo cat config/ Database.yml
production:
  adapter:mysql2
  encoding:utf8
  reconnect:false
  Database: Gitlabhq_production
  pool:10
  username:gitlab
  Password: "gitlab!@#"
  host:192.168.1.243
Initialize Gitlab database
sudo-u git-h chmod o-rwx config/database.yml sudo-u git-h bundle
exec rake Gitlab:setup rails_e Nv=production

2 Gitlab default installed username: admin@local.host, Password: 5ivel!fe, users need to modify the password after the first landing.

3 Gitlab Mail Reminder configuration, create account, add SSH key when there will be e-mail alerts to users.

Modify the global configuration file Git/.gitconfig file, where the email is the email address of the Gitlab email.

Configure the Gitlab SMTP service for sending mail, gitlab/config/environments/production.rb.

When an administrator creates an account for a user, the user's mailbox automatically receives a message sent by Gitlab.

Large-Scale Price Reduction
  • 59% Max. and 23% Avg.
  • Price Reduction for Core Products
  • Price Reduction in Multiple Regions
undefined. /
Connect with us on Discord
  • Secure, anonymous group chat without disturbance
  • Stay updated on campaigns, new products, and more
  • Support for all your questions
undefined. /
Free Tier
  • Start free from ECS to Big Data
  • Get Started in 3 Simple Steps
  • Try ECS t5 1C1G
undefined. /

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.