Install gitlab under Ubuntu 16.0.4
1. Install dependencies
sudo apt-get update
sudo apt-get install -y curl openssh-server ca-certificates
2. Mail configuration
Choose the Internet option, without Smarthost
sudo apt-get install -y postfix
3. Add mirror
Free
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
Enterprise Edition
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.deb.sh | sudo bash
4. Installation
sudo apt-get update
sudo apt-get install gitlab-ce
or sudo apt-get install gitlab-ee
5. Configure the access path
sudo -e /etc/gitlab/gitlab.rb
Modify the path in the figure below
6. Update configuration
sudo gitlab-ctl reconfigure
7. Restart gitlab
sudo gitlab-ctl restart
The result is as follows
8. Open sshd and postfix services
service sshd start
service postfix start
9. View gitlab server status
sudo gitlab-ctl status
10. Results
Visit http://127.0.0.1 in the browser