Home  >  Article  >  Computer Tutorials  >  CentOS7 system GitLab installation and deployment tutorial.

CentOS7 system GitLab installation and deployment tutorial.

PHPz
PHPzforward
2024-02-19 14:48:32610browse

CentOS7 system GitLab installation and deployment tutorial.

GitLab is a Git-based version management system that can provide code warehouse, code review, issue tracking and other functions.

The following are the steps to install GitLab on CentOS7 system:

  1. Installation dependencies
sudo yum install curl policycoreutils openssh-server openssh-clients 
sudo systemctl enable sshd 
sudo systemctl start sshd 
sudo firewall-cmd --permanent --add-service=http 
sudo systemctl reload firewalld
  1. Install PostgreSQL
sudo yum install postgresql-server postgresql-contrib 
sudo postgresql-setup initdb 
sudo systemctl enable postgresql 
sudo systemctl start postgresql
  1. Modify PostgreSQL configuration file

Open the
/var/lib/pgsql/data/pg_hba.conf file and find the following line:

# "local" is for Unix domain socket connections onlylocal   all             all                                     peer# IPv4 local connections:host    all             all             127.0.0.1/32            ident# IPv6 local connections:host    all             all             ::1/128                 ident

Change
peer to
md5, save the file and exit.

  1. Install GitLab
curl | sudo bash
sudo EXTERNAL_URL="

Among them,
EXTERNAL_URL specifies the address of GitLab.

  1. Start GitLab
sudo gitlab-ctl reconfigure
sudo gitlab-ctl start
  1. Set administrator password

Visit
and set the administrator password according to the prompts.

At this point, GitLab installation is complete. You can log in to the GitLab console, create a code repository, add developers, etc.

The above is the detailed content of CentOS7 system GitLab installation and deployment tutorial.. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:mryunwei.com. If there is any infringement, please contact admin@php.cn delete