Coder Social home page Coder Social logo

www3838438 / gitlab-ce-zh-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from qyh214/gitlab-ce-zh-1

0.0 2.0 0.0 5.51 MB

gitlab汉化补丁包(基于xhang的gitlab社区版的汉化)

JavaScript 18.78% Vue 3.68% CSS 0.02% Ruby 31.59% HTML 45.93%

gitlab-ce-zh-1's Introduction

Gitlab的安装,升级,以及汉化操作说明

注:仅指在CentOS7.4的64位版本上,进行Gitlab的相关安装,升级,汉化说明。

Gitlab的安装

  1. 按顺序执行以下命令:
sudo yum install -y curl policycoreutils-python openssh-server
sudo systemctl enable sshd
sudo systemctl start sshd
sudo firewall-cmd --permanent --add-service=http
sudo systemctl reload firewalld
sudo yum install postfix
sudo systemctl enable postfix
sudo systemctl start postfix
  1. 从清华镜像上下载rpm安装包。

下载页面

下载地址

  1. 在服务器上的下载安装包,并执行安装命令。比如:10.1.4版本
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-10.3.0-ce.0.el7.x86_64.rpm

sudo rpm -i gitlab-ce-10.3.0-ce.0.el7.x86_64.rpm
  1. 执行配置命令。
sudo gitlab-ctl reconfigure

完成上述步骤即实现Gitlab的原版安装。

注:如果服务器有专门的数据硬盘,用于存储版本库,请将该硬盘挂载在目录/var/opt下。并请在配置文件/etc/fstab中增加服务器启动自动挂载该数据盘。

Gitlab的升级(引用以往版本内容,未验证)

  1. 从清华镜像上下载rpm安装包。

  2. 停止unicorn、sidekiq:

sudo gitlab-ctl stop unicorn    
sudo gitlab-ctl stop sidekiq
  1. 备份数据:
sudo gitlab-rake gitlab:backup:create
  1. 升级安装新的rpm包:
sudo rpm -Uvh gitlab-ce-10.3.0-ce.0.el7.x86_64.rpm
  1. 执行配置命令。
sudo gitlab-ctl reconfigure

完成上述步骤即实现Gitlab的升级。

Gitlab的汉化

  1. 下载汉化包后上传服务器后解压。

  2. 停止Gitlab服务。

sudo gitlab-ctl stop
  1. 备份服务器上的/opt/gitlab/embedded/service/gitlab-rails目录。

注:该目录下的内容主要是web应用部分,也是当前项目仓库的起始版本,也是汉化包要覆盖的目录。

  1. 将解压后的汉化包覆盖服务器上的/opt/gitlab/embedded/service/gitlab-rails目录。

  2. 启动Gitlab服务。

sudo gitlab-ctl start
  1. 重新执行配置命令。
sudo gitlab-ctl reconfigure

完成上述步骤即实现汉化。

Gitlab的卸载

  1. 查看当前gitlab的安装版本
sudo rpm -qa | grep gitlab
  1. 使用yum方法卸载当前安装版本

sudo rpm -e gitlab-ce-10.3.0-ce.0.el7.x86_64.rpm

gitlab-ce-zh-1's People

Contributors

marbleqi avatar

Watchers

 avatar 长毛是狗 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.