CentOS7 system GitLab installation and deployment tutorial.

PHPz
Release: 2024-02-19 14:48:32
forward
626 people have browsed it

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
Copy after login
  1. Install PostgreSQL
sudo yum install postgresql-server postgresql-contrib 
sudo postgresql-setup initdb 
sudo systemctl enable postgresql 
sudo systemctl start postgresql
Copy after login
  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
Copy after login

Change
peer to
md5, save the file and exit.

  1. Install GitLab
curl | sudo bash
sudo EXTERNAL_URL="
Copy after login

Among them,
EXTERNAL_URL specifies the address of GitLab.

  1. Start GitLab
sudo gitlab-ctl reconfigure
sudo gitlab-ctl start
Copy after login
  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!

Related labels:
source:mryunwei.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template