ubuntu14 builds intranet gitlab server

platform

Host system version: Ubuntu 14.04.5 LTS

gitlab software version: 11.10.8-ee

Verify the web browser version: Mozilla Firefox 68.3.0esr

Install firefox browser

Download the Linux-64-bit web browser on the official website https://www.firefox.com.cn/download/ and install its software package to the host directory. The installation is as follows:

cd / usr / local
// Unzip the firefox installation package
tar -jxvf Firefox-latest-x86_64.tar.bz2
// The following is to install and run the firefox dependency package
sudo apt-get install libgtk-3-dev
sudo apt-get install libcanberra -gtk-module
sudo apt-get install libxt6
// The following is to generate local encoding
sudo local-gen zh_CN.UTF-8
sudo locale-gen

gitlab environment setup

1. Install dependent projects

sudo apt-get update

sudo apt-get install -y curl openssh-server ca-certificates

2. Install postfix to send notification emails

sudo apt-get install -y postfix

During the installation, a selection of configuration screens will appear. Please select the "Internet Site" option and press the "Enter" option.

After that, an edit box for filling in the name appears. You can use the default value and press the "Enter" option all the way until the installation is complete.

3. Add gitlab package repository

curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.deb.sh | sudo bash

4. Install the gitlab package

Can be installed using the command line:

sudo apt-get install gitlab-ee

You can use a web browser to download (the command line is sometimes very slow, it is not clear why):

The address of the specific web browser can be copied to the web browser to download using the address used in the command line installation above

Start installing the software:

sudo dpkg -i gitlab -ee_11 . 10.8 -ee . 0_amd64 .deb

5. Configure the address and access port number

sudo vim / etc / gitlab / gitlab .rb

Change the external_url to:

 

 

 Among them: 192.168.2.178 is the local ip address, 6688 is the local port number.

Open the firewall allow port:

sudo ufw allow 22

sudo ufw allow 6688

Restart configuration

sudo gitlab-ctl reconfigure

Open service

serivce postfix start

 

 

 ps -e | grip ssh

 

Make sure the above 2 services are enabled

 

 8. View running status

sudo gitlab-ctl status

 

 

 The above prompt appears, indicating successful operation.

web access gitlab

Open firefox browser, enter 192.168.2.178:6688 in the address bar to enter the gitlab web version:

 

 

 

  • Initial account: root

  • Initial password: xxxxxxxx

  • The root account password needs to be held by an administrator

  • Member accounts can be manually registered through the web

  • gitlab Web version Operating Instructions: HTTPS : / / docs .gitlab .com / EE / the README .html
  • Some document examples of web version:

  •  

     

     

     

Guess you like

Origin www.cnblogs.com/yinshaojie/p/12758118.html