zhouyi 发表于 2018-1-11 17:37:28

GitLab安装手记

  阿里云1G内存20G硬盘
  1.首先下载GitLab Deb包(官网附有apt-get安装方式,但国内环境貌似不成功):
  https://about.gitlab.com/downloads/
  2. dpkg -i gitlab-ce-XXX.deb 安装
  3. 安装完成后,重新配置 gitlab-ctl reconfigure
  4. root登录 密码5iveL!fe
  5. 安装完成后,发现内存占用极大,经常出现502错误
  6. 设置SWAP 2G内存
  7. 内存问题解决后,发现头像不能正常显示,配置文件中修改
  

gitlab_rails['gravatar_plain_url'] = 'http://gravatar.duoshuo.com/avatar/%{hash}?s=%{size}&d=identicon'  

  8. 重新配置 gitlab-ctl reconfigure
  9. 更改端口号:
  

external_url 'http://101.200.77.71:8088  

  10. 查看错误:
  

gitlab-ctl tail unicorn  
页: [1]
查看完整版本: GitLab安装手记