Linux installation Gitlab and Chinese

Source: Internet
Author: User

Gitlab Official Installation Tutorial Address https://about.gitlab.com/installation/#centos-6

This installation tutorial is based on the CentOS installation tutorial

1. Pre-Installation dependency handling

1. On CentOS 6 (and redhat/oracle/scientific Linux 6), the following command will also open HTTP and SSH access in the system firewall.

sudo yum install-y Curl Policycoreutils-python openssh-server croniesudo lokkit-s http-s ssh

2. Next, install postfix to send a notification email. If you want to send e-mail using a different solution, skip this step and configure the external SMTP server after you install Gitlab .

sudo yum install Postfixsudo service postfix startsudo chkconfig postfix on

  Note: sudo lokkit-s http-s ssh will not be able to find the Lokkit command, this time requires manual installation, the installation of the command is as follows: Yum install Lokkit,lokkit can help us set the iptables to open http and SSH.

2. Add the Gitlab repository and install it on the server

1. Here I install the thing CE Community version, you can choose according to your needs
Curl Https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash

2. The path can be either a ip+ port or an IP-based self-defined

sudo external_url= "path" yum-y install Gitlab-ce

3. The latter can also be modified in the VIM/ETC/GITLAB/GITLAB.RB

4. After the modification is complete, reconfigure the file and reboot to access the Gitlab.

Gitlab-ctl reconfiguregitlab-ctl Restart   

3. Gitlab of Chinese

1. First we want to confirm the current version of our Gitlab, view the version of the command as follows:
Cat/opt/gitlab/embedded/service/gitlab-rails/version

2. Download the latest Chinese package, if you want to download the specified version of the Chinese package, need to add a version number

git clone https://gitlab.com/xhang/gitlab.git-  b  V10.5.1-zh

3. After the download is complete, copy the contents of the downloaded folder into the Gitlab directory and go to Gitlab to view the patch version.

Cat  Gitlab/version

4. Stop the Gitlab service to copy the downloaded file to the specified location

# Gitlab-ctl Stop Method One # cp-r-F  /gitlab/*  /opt/gitlab/embedded/service/gitlab-rails/method Two \cp-r  -F./gitlab /*  /opt/gitlab/embedded/service/gitlab-rails/

5. After the copy is complete, need to reload the configuration, and start the Gitlab may be reported 502 error, need to restart the computer to access the Web interface again, the display is already familiar with Chinese

# Gitlab-ctl Reconfigure   # gitlab-ctl restart

  






  

  

Linux installation Gitlab and Chinese

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.