update gitlab install

This commit is contained in:
Alan 2023-09-10 23:52:34 +08:00
parent 64734d5254
commit 15b3c63c80
1 changed files with 30 additions and 0 deletions

30
gitlab/GitLab Install.md Normal file
View File

@ -0,0 +1,30 @@
# GitLab
## GitLab Install
https://about.gitlab.com/install/
```shell
sudo dnf install -y curl policycoreutils openssh-server perl
# Enable OpenSSH server daemon if not enabled: sudo systemctl status sshd
sudo systemctl enable sshd
sudo systemctl start sshd
# Check if opening the firewall is needed with: sudo systemctl status firewalld
sudo firewall-cmd --permanent --add-service=http
sudo firewall-cmd --permanent --add-service=https
sudo systemctl reload firewalld
sudo dnf install postfix
sudo systemctl enable postfix
sudo systemctl start postfix
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash
sudo EXTERNAL_URL="https://gitlab.example.com" dnf install -y gitlab-ee
# List available versions: sudo dnf --showduplicates list
# Specify version: sudo dnf install gitlab-ee-16.1.4-ee.0.el7
EXTERNAL_URL="http://10.10.1.150" dnf install -y gitlab-ee
grep 'Password:' /etc/gitlab/initial_root_password
```