update ubuntu
sudo apt update && sudo apt upgrade -y
configure the apt repository
curl -s https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
install the gitlab-ce
sudo apt install gitlay-ce -y
you will wait for a long long time, then you will get the following snapshot:
re-configure the gitlab-ce
sudo gitlab-ctl reconfigure
at last, you will get the following information:
start the gitlab-ce
sudo gitlab-ctl start
you will see the following:
check the gitlab-ce status
sudo gitlab-ctl status
at last, open it in web browser
http://localhost/
or
http://hostname/
you will see:
please reset your pwd if you forgot your passphase
gitlab-rake "gitlab:password:reset"
sudo gitlab-rake 'gitlab:password:reset[root]'