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:
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
sudo yum install postgresql-server postgresql-contrib sudo postgresql-setup initdb sudo systemctl enable postgresql sudo systemctl start postgresql
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.
curl | sudo bash sudo EXTERNAL_URL="
Among them, EXTERNAL_URL
specifies the address of GitLab.
sudo gitlab-ctl reconfigure sudo gitlab-ctl start
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!