• 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
    

      

  • 相关阅读:
    用DECODE进行排序
    linux下批量替换文件内容
    Linux下chkconfig命令详解
    linux 命令参数列表过长以及find用法
    参数上使用自定义注解在aop中无法获取到该参数
    AOP
    AOP aspect XML 配置
    AOP前世与今生,aspect
    ETL工具之——kettle使用简介
    ETL工具之kittle使用案例整理
  • 原文地址:https://www.cnblogs.com/wintercloud/p/11171428.html
Copyright © 2020-2023  润新知