GitLab is a web interface based Git repository management program that includes code auditing, wikis, issue tracking, and more. It’s very easy to create, inspect and deploy code with GitLab. It can be hosted on our own servers and also offers free repository hosting on official servers, similar to Github.
GitLab is available in three different editions: Community Edition (CE), Enterprise Edition (EE), and GitLab Hosted Edition. The CE version is open source and free. The EE version is an enterprise version and needs to be paid for.
The recommended number of CPU cores is 4 cores, and the recommended memory size is 4GB.
Create a new /etc/yum.repos.d/gitlab-ce.repo repository file and copy the contents to the file.
[[email protected] ~]# touch /etc/yum.repos.d/gitlab-ce.repo
[gitlab-ce] name=Gitlab CE Repository baseurl=https://mirrors.tuna.tsinghua…$releasever/ gpgcheck=0 enabled=1
Update the yum cache, then install gitlab-ce:
The installation is complete.
open ports in firewall
Configure and start gitlab
Just installed, you need to configure gitlab.
[[email protected] ~]# gitlab-ctl reconfigure
After the configuration is complete, all services have been started, and the startup has been set up.
gitlab-ctlThe commonly used operations:
start all services
turn off all services
restart all services
List all services
View service status
Web interface to access GitLab
Enter the local ip address in the browser to access gitlab. The first time you access, you need to set a password for the administrator:
The default user is
root, just set the password, you can log in:
Then you can create a project.
GitLab is able to integrate a large number of tools like Slack, Hipchat, LDAP, JIRA, Jenkins, many types of hooks and a complete API.