https://www.jianshu.com/p/2eef885b4aed
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 Edition
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 image below
![](http://upload-images.jianshu.io/upload_images/3878590-d3327045a676def4.png?imageMogr2/auto-orient/strip|imageView2/2/w/727/format/webp)
TIM picture 20190212135449.png
6. Update configuration
sudo gitlab-ctl reconfigure
7. Restart gitlab
sudo gitlab-ctl restart
The results are as follows
![](http://upload-images.jianshu.io/upload_images/3878590-816e0b7382551780.png?imageMogr2/auto-orient/strip|imageView2/2/w/443/format/webp)
TIM picture 20190212135903.png
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
![](http://upload-images.jianshu.io/upload_images/3878590-95f2d156e47bdd5f.png?imageMogr2/auto-orient/strip|imageView2/2/w/740/format/webp)
TIM picture 20190212140211.png
Author: Tu little fox demon
link: https: //www.jianshu.com/p/2eef885b4aed
Source: Jane books
are copyrighted by the author. For commercial reproduction, please contact the author for authorization, and for non-commercial reproduction, please indicate the source.