设为首页 收藏本站
查看: 1783|回复: 0

[经验分享] Ubuntu 14.04下安装GitLab

[复制链接]

尚未签到

发表于 2018-1-11 09:07:52 | 显示全部楼层 |阅读模式
  0、硬件要求
  官方要求:http://doc.gitlab.com/ce/install/requirements.html

CPU


  • 1 core works supports up to 100 users but the application can be a bit slower due to having all workers and background jobs running on the same core
  • 2 cores is the recommended number of cores and supports up to 500 users
  • 4 cores supports up to 2,000 users
  • 8 cores supports up to 5,000 users
  • 16 cores supports up to 10,000 users
  • 32 cores supports up to 20,000 users
  • 64 cores supports up to 40,000 users
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 advice.
  • 1GB RAM + 1GB swap supports up to 100 users but it will be very slow
  • 2GB RAM is the recommended memory>
  • 4GB RAM supports up to 1,000 users
  • 8GB RAM supports up to 2,000 users
  • 16GB RAM supports up to 4,000 users
  • 32GB RAM supports up to 8,000 users
  • 64GB RAM supports up to 16,000 users
  • 128GB RAM supports up to 32,000 users
  实验结果:
  A、单核1G的阿里云主机,经常提示内存不足,前端表现为500错误。
  B、本地虚拟机单核1G,经常卡顿,一个页面要加载很久才能出来。
  C、本地虚拟机双核2G,完美运行无卡顿。
  默认账号:
  root
  5iveL!fe
  1、官方安装方法
  https://about.gitlab.com/downloads/#ubuntu1404
  2、手工下载安装
  https://about.gitlab.com/downloads/archives/
  wget -c https://downloads-packages.s3.amazonaws.com/ubuntu-14.04/gitlab-ce_7.10.4~omnibus-1_amd64.deb
  sudo dpkg -i gitlab-ce_7.10.5-omnibus-1_amd64.deb
  

sudo mkdir -p /etc/gitlab  
sudo touch /etc/gitlab/gitlab.rb
  
sudo chmod 600 /etc/gitlab/gitlab.rb
  
sudo vi /etc/gitlab/gitlab.rb
  

  sudo gitlab-ctl reconfigure
  #80则可以不用写端口号
  external_url 'http://git.xxx.com:8080'
DSC0000.png

DSC0001.png

DSC0002.png

  修改上述配置
  再次执行:sudo gitlab-ctl reconfigure
  使用:
  

sudo gitlab-ctl status  查看状态

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-433777-1-1.html 上篇帖子: gitlab-webhook 下篇帖子: 使用Docker Image跑Gitlab
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表