• omnibus方式部署gitlab


    omnibus方式部署gitlab

    这几天折腾搭建git服务器,选择了比较流行的gitlab,一开始就直奔一键安装脚本去了,连gitlab主页都没去看看。用的gitlab-installer,centos6.5,各种错误,各种依赖关系,还有各种无法连接,两天了都没成功。无奈手动配置,没有接触过ruby on rails,照着网上的文档抄,忍受着龟速的epel源,花了几个小时,终于配置成功。把一个项目托管上去,终于松口气,想着下班回去在配一遍,总结下过程。然而,下班回来一搜gitlab,随手打开gitlab主页,我决定暂时放弃这个想法。

    因为我发现,居!然!有!官!方!的!rpm!安!装!包!

    omnibus方式部署gitlab

    步骤很简单,主要就是下载速度太慢,好在有个美国的vps,先下载到vps上,然后从vps下载,速度稍好,顺便用百度网盘离线下载了一份。

    配置开放用户注册

    默认是不允许注册的,如果需要开放注册,可以编辑 /etc/gitlab/gitlab.rb,查找signup_enabled ,值改为true,并取消注释,之后重新配置gitlab。

     遇到的问题

    内存不足

    512M的虚拟机,打开gitlab页面巨卡,简直无法忍受,查看内存使用情况:

    查看gitlab官网的硬件需求

    MEMORY

    You need at least 2GB of addressable memory (RAM + swap) to install and use GitLab! With less memory GitLab will give strange errors during the reconfigure run and 500 errors during usage.

    • 512MB RAM + 1.5GB of swap is the absolute minimum but we strongly advise against this amount of memory. See the unicorn worker section below for more advise.
    • 1GB RAM + 1GB swap supports up to 100 users
    • 2GB RAM is the recommended memory size and supports up to 500 users
    • 4GB RAM supports up to 2,000 users
    • 8GB RAM supports up to 5,000 users
    • 16GB RAM supports up to 10,000 users
    • 32GB RAM supports up to 20,000 users
    • 64GB RAM supports up to 40,000 users

    Notice: The 25 workers of Sidekiq will show up as separate processes in your process overview (such as top or htop) but they share the same RAM allocation since Sidekiq is a multithreaded application.

    把虚拟机内存调到1G,果然好了,页面打开很流畅。

    但是之前手动配置的也是512的虚拟机,打开一样很流畅,看来手动配置还是有意义的

  • 相关阅读:
    VS2010如何以管理员权限启动? 转载
    ArcGIS属性编辑字符型字段值出现乱码问题
    点批量移动到线上(ArcGis版) 转载
    C#判断数据库中取出的字段值是否为空(NULL) .
    方框内打勾(钩)的符号(word和excel)
    C# 获取屏幕的大小
    神通数据库的备份和还原
    推荐系列文章:《DotText源码阅读》
    Lucene.Net 2.3.1开发介绍 —— 阅读索引(转载)
    Lucene.Net:使用eaglet的盘古分词进行分词和搜索(转载)
  • 原文地址:https://www.cnblogs.com/kinyer/p/5709549.html
Copyright © 2020-2023  润新知