Home > other >  Linux environment GitLab installation
Linux environment GitLab installation

Time:10-07

Website: https://about.gitlab.com/install/#centos-7
1. Install and configure the necessary dependencies
on CentOS 7, the following command will also be in the system firewall open the HTTP, HTTPS and SSH access ,
Sudo yum install - y curl policycoreutils - python openssh - server
Sudo systemctl enable SSHD
Sudo systemctl start SSHD
Sudo is firewall - CMD - permanent - add - service=HTTP
Sudo is firewall - CMD - permanent - add - service=HTTPS
Sudo systemctl reload firewalld
(hint ,
Systemctl status firewalld;
Systemctl start firewalld;
)

installation Postfix to send notification E-mail
Sudo yum install postfix
Sudo systemctl enable postfix
Sudo systemctl start postfix

2. Add GitLab package repository and install packages


The curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash

Sudo EXTERNAL_URL="https://gitlab.example.com" yum install - y gitlab - ee

Commonly used command

Check the version
The cat/opt/gitlab/embedded/service/gitlab - rails/VERSION
The refresh configuration
Gitlab - CTL reconfigure
Startup, shutdown and restart (/opt/gitlab/bin)
Gitlab - CTL start
Gitlab - CTL stop
Gitlab - CTL restart
Prompt "ok: the run successfully, the following graph:


:
When running gitlab - CTL reconfigure command this letsencrypt error:

A:
In the/etc/gitlab/gitlab rb add letsencrypt [' enable ']=false can solve,

Gitlab HTTP access error 404
A:
Check whether Firewalls add HTTP service is installed, try to close the firewall,/etc/gitlab gitlab. Comments in the configuration of rb external_url

  • Related