zoukankan      html  css  js  c++  java
  • CentOS7.5安装GitLab及汉化

    一、GitLab英文版安装  

      1.下载gitlab安装包,然后安装

    wget --content-disposition https://packages.gitlab.com/gitlab/gitlab-ce/packages/el/7/gitlab-ce-10.8.4-ce.0.el7.x86_64.rpm/download.rpm
    

      2.下载安装python

    yum install policycoreutils-python
    

      3.安装gitlab

    rpm -ivh gitlab-ce-10.8.4-ce.0.el7.x86_64.rpm
    

      

      4.修改配置文件

      将external_url变量的地址修改为gitlab所在centos的ip地址(或者域名)

    vim  /etc/gitlab/gitlab.rb
    

     

     5.使配置生效并启动GitLab

    gitlab-ctl reconfigure
    gitlab-ctl restart
    

    在浏览器输入ip:端口号即可访问GitLab web页面,输入密码后进入系统。如果不需要汉化,至此已安装完成(如果需要邮件服务 还需修改配置文件)

    二、 GitLab汉化

      1、安装git

    yum install -y git

      2.克隆汉化补丁仓库

    git clone https://gitlab.com/xhang/gitlab.git
    

      3.查看当前gitlab版本并且获取对应版本的中文补丁

    head -1 /opt/gitlab/version-manifest.txt 
    cd gitlab
    git diff v10.8.4 v10.8.4-zh  > ../v10.8.4-zh.diff
    

      4.将中文补丁导入gitlab

    gitlab-ctl stop
    patch -d /opt/gitlab/embedded/service/gitlab-rails -p1 <  ../v10.8.4-zh.diff   #一路回车知道完成
    

      5.重新配置并启动

    gitlab-ctl reconfigure 
    gitlab-ctl start
    

      

  • 相关阅读:
    SQL*Loader-951错误
    excel导出
    zookeeper常见bug
    可编辑表格
    tree的应用
    join
    hibernate manytomany 双向
    hibernate 多对多 单向关联
    hibernate 一对多(多对一)双向
    hibernate one2many
  • 原文地址:https://www.cnblogs.com/wintercloud/p/11171428.html
Copyright © 2011-2022 走看看