Ubuntu Gitlab Server Setup

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.