Gitlab Server Setup
1. Installing dependent Packages
sudo apt-get install curl openssh-server ca-certificates postfix
When the execution is complete, the mail configuration appears, select the Internet item (without smarthost)
2. Download the latest package
Installing the GITLAB-CE Package
In https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/ubuntu/pool/xenial/main/g/gitlab-ce/ Link to download the latest version of Gitlab-ce (download gitlab-ce_11.1.4-ce.0_amd64.deb here)
3. Installation
sudo dpkg -i gitlab-ce_11.1.4-ce.0_amd64.deb
4. Modify the Gitlab configuration
Modify External_url to
External_url ' http://192.168.1.128 '
The IP address is the IP address of Ubuntu (Ifconfig Viewing)
5.gitlab Configuration Rebuild
sudo gitlab-ctl reconfigure
Will take a long time.
6. Check the status
sudo gitlab-ctl status
run: alertmanager: (pid 32042) 126s; run: log: (pid 32048) 126srun: gitaly: (pid 31950) 134s; run: log: (pid 31960) 133srun: gitlab-monitor: (pid 31971) 133s; run: log: (pid 31992) 129srun: gitlab-workhorse: (pid 31929) 135s; run: log: (pid 31940) 135srun: logrotate: (pid 30838) 311s; run: log: (pid 31946) 134srun: nginx: (pid 336) 1s; run: log: (pid 31942) 134srun: node-exporter: (pid 31170) 259s; run: log: (pid 31963) 133srun: postgres-exporter: (pid 32063) 125s; run: log: (pid 32071) 125srun: postgresql: (pid 30295) 454s; run: log: (pid 31918) 136srun: prometheus: (pid 32016) 127s; run: log: (pid 32062) 125srun: redis: (pid 30223) 460s; run: log: (pid 31917) 136srun: redis-exporter: (pid 31305) 237s; run: log: (pid 31976) 131srun: sidekiq: (pid 30770) 326s; run: log: (pid 31920) 136srun: unicorn: (pid 30726) 332s; run: log: (pid 31919) 136s
Indicates normal.
7. Enter IP access in the browser.
Typically, 80 ports are occupied.
Modify/etc/gitlab/gitlab.rb
Increasenginx[‘listen_port‘] = 8081
Re-execution,
sudo gitlab-ctl reconfigure
Ubuntu Gitlab Server Setup