• gitlab 搭建


     一、ubuntu搭建gitlab
     
     
    1. 如果以前有安装过gitlab请根据以下步骤来删除
    https://www.cnblogs.com/shansongxian/p/6678110.html
    
    2. 安装gitlab   (参考 https://blog.csdn.net/qq_36467463/article/details/78283874)

    sudo apt-get install curl openssh-server ca-certificates postfix

    curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash

    sudo apt-get update

    sudo apt-get install gitlab-ce

    sudo gitlab-ctl reconfigure

     sudo gitlab-ctl status

    可能遇到的错误:

    error: 执行 sudo gitlab-ctl reconfigure 会死在这里:ruby_block[supervise_redis_sleep] action run  

    解决方案 : 

    1、按住CTRL+C强制结束;

    2、运行:sudo systemctl restart gitlab-runsvdir

    3、再次执行:sudo gitlab-ctl reconfigure

     

    error : 内存不足

    解决方案: 放弃ubuntu使用CentOS  , centOS7 gitlab安装教程https://www.cnblogs.com/wenwei-blog/p/5861450.html

    二 、 centOS搭建gitlab

    1. 参照教程   https://www.cnblogs.com/wenwei-blog/p/5861450.html

    2.  更改

    vim /opt/gitlab/embedded/service/gitlab-rails/config/gitlab.yml

  • 相关阅读:
    Cookie、Session和自定义分页
    logstash 运行
    php json数据保留原样中文
    linux 32位还是64位
    php之isset 与 empty 区别
    php 订单
    个人分类
    laravel 创建自己的函数
    lumen框架导入数据异常
    yum安装samba服务器的安装
  • 原文地址:https://www.cnblogs.com/luoyinjie/p/9748833.html
Copyright © 2020-2023  润新知