• gitlab 的安装、汉化、卸载


    新机

    dell服务器

    2核4G

    官网:

    https://about.gitlab.com/install/

    1、本次安装选择版本v10.8.4

    wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-10.8.4-ce.0.el7.x86_64.rpm

    2、安装
    rpm -ivh gitlab-ce-10.8.4-ce.0.el7.x86_64.rpm

    3、配置端口,防止端口冲突
    vim /etc/gitlab/gitlab.rb

    4、启动配置
    #gitlab-ctl reconfigure

    #gitlab-ctl restart

    #gitlab-ctl status   #查看状态
    #gitlab-ctl tail   #查看日志

    5、验证能否登录

    首次登录页面会让你设置root的密码,经过两次确认即可生效

    如果你不小心忘了root密码,不要急,可以重新设置root密码:

     

    #gitlab-rails console production   //命令
    
    -------------------------------------------------------------------------------------
    GitLab: 11.2.3 (06cbee3)
    GitLab Shell: 8.1.1
    postgresql: 9.6.8
    -------------------------------------------------------------------------------------
    Loading production environment (Rails 4.2.10)
    irb(main):001:0> user = User.where(id: 1).first     // id为1的是超级管理员
    irb(main):002:0>user.password = 'yourpassword'      // 密码必须至少8个字符
    irb(main):003:0>user.save!                          // 如没有问题 返回true
    exit                                                // 退出

      

    6、准备汉化

     

    gitlab-ctl stop #停止gitlab
    cat
    /opt/gitlab/embedded/service/gitlab-rails/VERSION #查看当前版本
    git clone https:
    //gitlab.com/xhang/gitlab.git #克隆汉化版本库
    git diff v10.8.4 v10.8.4-zh > /tmp/v10.8.4-zh.diff
    patch
    -d /opt/gitlab/embedded/service/gitlab-rails -p1 < /tmp/v10.8.4-zh.diff

    #gitlab-ctl reconfigure

    #gitlab-ctl restart

     

    如何卸载gitlab

    1、停止gitlab
    gitlab-ctl stop
    2、卸载gitlab(注意这里写的是gitlab-ce)
    rpm -e gitlab-ce
    3、查看gitlab进程
    ps aux | grep gitlab
    4、杀掉第一个进程(就是带有好多.............的进程)

    ps aux | grep gitlab 验证是否杀掉了

    5、删除所有包含gitlab文件
    find / -name gitlab | xargs rm -rf

    参考文档:
    https://www.cnblogs.com/okshall/p/9670018.html         安装
    https://blog.csdn.net/qq_38363371/article/details/78860010        gitlab安装与502报错
    https://yq.aliyun.com/articles/114619                卸载gitlab
    http://blog.51cto.com/bigboss/2129284            汉化时可能会遇到的问题
    https://blog.csdn.net/ouyang_peng/article/details/83215543   卸载重装Gitlab的时候,出现* ruby_block[supervise_redis_sleep] action run 卡死不动的解决方法 (systemctl restart gitlab-runsvdir)

  • 相关阅读:
    solr开发从查询结果集中获取对象数据
    solr开发,提交索引数据的几种方式
    初识SolrJ开发, schema.xml的配置与服务初始化.
    实例介绍,如何在开发中将各层日志归类输出.
    springmvc整合redis架构搭建实例
    面试求职中你需要了解的Java面向对象
    整合Solr到Tomcat服务器,并配置IK分词
    formValidator输入验证、异步验证实例 + licenseImage验证码插件实例应用
    SpringMVC整合Mongodb开发,高级操作
    SpringMVC整合Mongodb开发 架构搭建
  • 原文地址:https://www.cnblogs.com/shijunjie/p/10321143.html
Copyright © 2020-2023  润新知