【Ubuntu】Install GitLab

Posted by 西维蜀黍 on 2024-08-17, Last Modified on 2024-08-28

ubuntu install gitlab

GitLab requires certain dependencies, such as curl and ca-certificates. Install them with:

sudo apt install -y curl openssh-server ca-certificates tzdata perl
sudo apt install -y postfix

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

sudo EXTERNAL_URL="http://192.168.18.151" apt install gitlab-ee

# Configure GitLab
sudo gitlab-ctl reconfigure

Step 7: Access GitLab

Open your web browser and go to http://your_domain_or_ip. You should see the GitLab login screen.

Step 8: Set Up an Admin Account

On the first login, you will be prompted to set a password for the root account. After setting the password, you can log in with the username root and the password you just set.

Reference


TOC