Table of Contents
Use yum to install git" >Use yum to install git
Modify gitlab configuration file" >Modify gitlab configuration file
Reload configuration" >Reload configuration
Configure gitlab to start automatically at boot" >Configure gitlab to start automatically at boot
Start GitLab" >Start GitLab
Change password method 2" >Change password method 2
Home Computer Tutorials Computer Knowledge Centos offline installation of Chinese version of GitLab

Centos offline installation of Chinese version of GitLab

Feb 19, 2024 am 11:36 AM
yum gitlab Installation package

1. Download the gitlab installation package

Download the latest Chinese version of gitlab installation package from [Tsinghua University Open Source Software Mirror Station]. The installation package comes with a simplified Chinese localization package.

Download the latest gitlab installation package from [gitlab official website].

Centos offline installation of Chinese version of GitLab

2. Install gitlab

Take gitlab-ce-14.9.4-ce.0.el7.x86_64 as an example and upload it to the centos server

Use yum to install gitlab

yum -y install gitlab-ce-14.3.2-ce.0.el7.x86_64.rpm
Copy after login

Centos offline installation of Chinese version of GitLab

Centos offline installation of Chinese version of GitLab

Use yum to install git

yum -y install git #安装git
Copy after login

Centos offline installation of Chinese version of GitLab

Modify gitlab configuration file

vim /etc/gitlab/gitlab.rb
Copy after login

Centos offline installation of Chinese version of GitLab

Modify the domain name or IP for external access:

# 修改 external_url 'example.gitlab.com' 这一句
external_url 'http://192.168.150.102:8899'#修改成你自己的IP或域名:端口
Copy after login

Note: The port set here cannot be occupied. The default port is 8080. If 8080 is already used, please customize other ports and set ports within the open range in the firewall.

Reload configuration

gitlab-ctl reconfigure     #重新生成相关配置文件,执行此命令时间比较长
Copy after login

Note: Regenerating the relevant configuration files will take a long time to execute this command

Configure gitlab to start automatically at boot

systemctl enable gitlab-runsvdir.service
systemctl start gitlab-runsvdir.service
Copy after login

Start GitLab

systemctl stop firewalld #关掉防火墙,要不然9091端口不能对外访问
gitlab-ctl restart #重启gitlab
Copy after login

Centos offline installation of Chinese version of GitLab

用户名: root
Copy after login

Default password reading

cat /etc/gitlab/initial_root_password
Copy after login

Centos offline installation of Chinese version of GitLab

Change password method

Centos offline installation of Chinese version of GitLab

Change password method 2

cd /opt/gitlab/bin
sudo gitlab-rails console -e production
Copy after login
u=User.where(id:1).first # u定义为root用户
u.password='zbbmeta' # 设置root密码, 注意需要符合密码强度
u.password_confirmation='zbbmeta' # 确认当前密码
u.save! # 保存操作
quit # 退出交互界面
Copy after login

Set to Simplified Chinese

Log in to GitLab first. After successful login, configure Simplified Chinese in the system settings of the Gitlab backend.

Setting path: Setting–>Preferences–>Language, change the character set to Simplified Chinese.

Centos offline installation of Chinese version of GitLab

Centos offline installation of Chinese version of GitLab

Note: Don’t forget to click Save

The above is the detailed content of Centos offline installation of Chinese version of GitLab. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to extract the installation package of software installed on the computer How to extract the installation package of software installed on the computer Nov 30, 2023 pm 03:25 PM

Installed software on your computer can be extracted by using a third-party software extractor, extracting it directly from the system folder, or using a professional software packaging tool. Detailed introduction: 1. Use a third-party software extractor, select the installation directory of the installed software to be extracted, and set the save location of the extracted files. The software extractor will decompress and extract the related files of the installed software, and save the files to the specified location. location; 2. Extract directly from the system folder, etc.

Detailed explanation of the steps to upgrade gcc using yum on CentOS6.5 Detailed explanation of the steps to upgrade gcc using yum on CentOS6.5 Dec 31, 2023 am 10:59 AM

Because C++11 needs to be used, but the gcc4.4.7 that comes with CentOS does not support it, I decided to upgrade gcc. The operation is as follows: #Backup mv/etc/yum.repos.d/devtools-2.repo/etc/yum.repos.d/devtools-2.repo.bakwgethttp://people.centos.org/tru/devtools-2 /devtools-2.repo-O/etc/yum.repos.d/devtools-2.repoyuminstalldevtoolset-2-gccdevtoolse

How to use GitLab for project document management How to use GitLab for project document management Oct 20, 2023 am 10:40 AM

How to use GitLab for project document management 1. Background introduction In the software development process, project documents are very important information. They can not only help the development team understand the needs and design of the project, but also provide reference to the testing team and customers. In order to facilitate version control and team collaboration of project documents, we can use GitLab for project document management. GitLab is a version control system based on Git. In addition to supporting code management, it can also manage project documents. 2. GitLab environment setup First, I

Centos offline installation of Chinese version of GitLab Centos offline installation of Chinese version of GitLab Feb 19, 2024 am 11:36 AM

1. Download the gitlab installation package. Download the latest Chinese version of the gitlab installation package from [Tsinghua University Open Source Software Mirror Station]. The installation package comes with a simplified Chinese localization package. Download the latest gitlab installation package from [gitlab official website]. 2. Install gitlab, take gitlab-ce-14.9.4-ce.0.el7.x86_64 as an example, upload it to the centos server and use yum to install gitlabyum-yinstallgitlab-ce-14.3.2-ce.0.el7.x86_64. rpm uses yum to install gityum-yinstallgit#Install git and modify the gitlab configuration file vi

How to install and use pycharm in Linux environment? How to install and use pycharm in Linux environment? Mar 16, 2024 am 08:01 AM

To install and use PyCharm in a Linux environment, you can follow the steps below: Open a browser and visit the PyCharm official website (). Find the PyCharm version for Linux on the website and download the corresponding installation package. There are usually two versions to choose from: Community Edition (free version) and Professional Edition (paid version). Once the download is complete, open a terminal. In the terminal, navigate to the directory where you downloaded the installation package. Run the following command to decompress the installation package: tar-xvfpycharm-*.tar.gz Replace "pycharm-*" with the actual downloaded installation package file name

'Easy download of Golang installation package: Detailed guide, one-click completion' 'Easy download of Golang installation package: Detailed guide, one-click completion' Feb 25, 2024 pm 05:45 PM

A complete guide to downloading the Golang installation package. With the popularity of Golang, more and more developers are beginning to pay attention to and learn this language. However, for some beginners, downloading and configuring the Golang installation package may become a problem. Today, we will bring you a complete guide to downloading the Golang installation package, so that you can get the required installation package with one click without worrying, and provide specific code examples so that you can easily start your Golang journey. Step 1: Download the Golang installation package. First, I

What is the difference between Linux package management tools yum and apt? What is the difference between Linux package management tools yum and apt? May 30, 2023 am 09:53 AM

Generally speaking, famous Linux systems are basically divided into two categories: RedHat series: Redhat, Centos, Fedora, etc.; Debian series: Debian, Ubuntu, etc. yum (YellowdogUpdater, Modified) is a Shell front-end package manager in Fedora, RedHat and SUSE. apt (AdvancedPackagingTool) is a shell front-end package manager in Debian and Ubuntu. Overview Generally speaking, the famous Linux systems are basically divided into two categories: RedHat series: Redhat, Cento

GitLab's code base backup and recovery functions and implementation steps GitLab's code base backup and recovery functions and implementation steps Oct 20, 2023 pm 12:04 PM

GitLab is an open source code hosting platform that provides rich features, including code base backup and recovery. Code base backup is one of the important steps to ensure the security of the code and it can help us recover the data when unexpected things happen. This article will introduce GitLab's code base backup and recovery functions, and provide corresponding implementation steps and code examples. GitLab's code base backup function GitLab provides two types of backup: incremental backup and full backup. Incremental backup: Incremental backup means backing up only the latest changed data

See all articles