Linux--gitlab version control, about project group management, project user and Rights management use

Source: Internet
Author: User
Tags administrator password

Gitlab is generally used for:
1. Management of various document changes in the development project
The main function is to track changes to the file and record the information. Each time the file changes, the version number will increase

2. Parallel development
Software development often is multi-person collaboration, and version control can solve the version synchronization and communication problems of different developers

3. Version fallback, similar to a snapshot of a virtual machine
In each development task, you need to first set up a version of the development baseline, and then develop the desired target version, modify the version of the affected configuration item by evaluating the changes and determining the scope of the changes as the requirements change.
When a development requirement change is canceled, the ability to push the version back to the development baseline version
Example: In a quarterly upgrade package unpacking and re-grouping package, is the version of the score configuration is returned to the development baseline, in the different branches of the different needs to be grouped and merged to form a new version of the upgrade package

Shut down the firewall

[[email protected] ~]# systemctl stop firewalld[[email protected] ~]# systemctl disable firewalld[[email protected] ~]# sed -ri ‘s/(SELINUX=).*/\1disabled/g‘ /etc/selinux/config[[email protected] ~]# setenforce 0

Configuring the source for installation 163

[[email protected] ~]# cd /etc/yum.repos.d///创建备份目录[[email protected] yum.repos.d]# mkdir /etc/repo-bf//将原yum仓库的文件备份到repo-bf[[email protected] yum.repos.d]# mv * /etc/repo-bf//下载163的源到yum仓库[[email protected] yum.repos.d]# curl -o 163.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo//将改为版本的7[[email protected] yum.repos.d]# sed -i ‘s/\$releasever/7/g‘ /etc/yum.repos.d/163.repo[[email protected] yum.repos.d]# sed -i ‘s/enabled=0/enabled=1/g‘ /etc/yum.repos.d/163.repo//自动配置yum的软件仓库,也可以自己配置[[email protected] yum.repos.d]# yum -y install epel-release[[email protected] yum.repos.d]# yum clean all//安装编译环境[[email protected] yum.repos.d]# yum -y install gcc gcc-c++[[email protected] yum.repos.d]# yum -y install wget

Install Git

[[email protected] yum.repos.d]# yum -y install epel-release git

Install dependent packages

[[email protected] yum.repos.d]# yum -y install curl openssh-server openssh-clients postfix cronie policycoreutils-python

Start the Postfix service and set up boot, which is a mail server

[[email protected] yum.repos.d]# systemctl restart postfix[[email protected] yum.repos.d]# systemctl enable postfix

Download Gitlab RPM Package

[[email protected] yum.repos.d]#  cd /usr/src/[[email protected] src]# lsdebug  kernels[[email protected] src]# wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-11.2.1-ce.0.el7.x86_64.rpm

Installing Gitlab

[[email protected] src]# rpm -ivh gitlab-ce-11.2.1-ce.0.el7.x86_64.rpm

Modifying a configuration file

[[email protected] src]# vim /etc/gitlab/gitlab.rbexternal_url ‘http://192.168.56.11‘             将此处设置为gitlab的服务器地址或ip地址

Reload the configuration file and restart

[[email protected] src]# gitlab-ctl reconfigure[[email protected] src]# gitlab-ctl restart

View the current Gitlab version

[[email protected] src]# head -1 /opt/gitlab/version-manifest.txtgitlab-ce 11.2.1

Set the Administrator password

[[email protected] src]# gitlab-rails console production      //也可用于重置密码irb(main):001:0> user = User.where(id: 1).first           //id为1是超级管理员=> #<User id:1 @root>irb(main):002:0> user.password = ‘guohui123!‘         //设置密码=> "guohui123!"irb(main):003:0> user.save!                        //保存修改Enqueued ActionMailer::DeliveryJob (Job ID: 983489f7-a46e-44ff-90b4-cfc966a819fd) to Sidekiq(mailers) with arguments: "DeviseMailer", "password_change", "deliver_now", gid://gitlab/User/1=> true                         /无问题则返回trueirb(main):004:0> exit     //退出

192.168.56.11

Set and enter the new password here.
(page here can be translated with Google)


Go to Admin area settings, select Project (Projects)

Gitlab Common management operations

Project management, creating new projects

Create groups, group paths

You can select a group of items in the project path after creation
Create a member group, create a member group for the project



User management, add gitlab user, delete gitlab user
Add user remember to set password

Add user and user identities to the project

Regular user login, identity for Developers

Do operations to know that these are almost OK, the other to the development to do good ~

Linux--gitlab version control, about project group management, project user and Rights management use

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.