gitlab ubuntu installation

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

 
TIM picture 20190212135449.png

 

6. Update configuration

sudo gitlab-ctl reconfigure

7. Restart gitlab

sudo gitlab-ctl restart
The results are as follows

 
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

 
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.

Guess you like

Origin www.cnblogs.com/chengfengchi/p/12679270.html