zoukankan      html  css  js  c++  java
  • Ubuntu14.04 安装Gitlab

    • 安装ubuntu 操作系统
      除了 openssh server 其它都不需要
    • 配置软件源
    root@gitlab:~# cat /etc/apt/sources.list
    deb http://mirrors.sohu.com/ubuntu/ trusty multiverse universe restricted main
    deb http://mirrors.sohu.com/ubuntu/ trusty-updates multiverse universe restricted main
    deb http://mirrors.sohu.com/ubuntu/ trusty-backports multiverse universe restricted main
    deb http://mirrors.sohu.com/ubuntu/ trusty-security multiverse universe restricted main
    deb http://mirrors.sohu.com/ubuntu/ trusty-proposed multiverse universe restricted main
    
    • 配置Gitlab源

    详细步骤

    # 简单说明
    curl https://packages.gitlab.com/gpg.key 2> /dev/null | sudo apt-key add - &>/dev/null
    
    echo 'deb https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/ubuntu trusty main' >> /etc/apt/sources.list.d/gitlab-ce.list
    
    • 执行update
    apt-get update
    apt-get install gitlab-ce
    
    # 也可以选择安装特定版本
    apt-get install gitlab-ce=8.4.10-ce.0
    
    • 配置gitlab
    gitlab-ctl reconfigure
    
    # vim /etc/gitlab/gitlab.rb
    gitlab_rails['smtp_enable'] = true
    gitlab_rails['smtp_address'] = "smtp.exmail.qq.com"
    gitlab_rails['smtp_port'] = 465 
    gitlab_rails['smtp_user_name'] = "support@ttlsa.com"
    gitlab_rails['smtp_password'] = "www.ttlsa.com"
    gitlab_rails['smtp_domain'] = "ttlsa.com"
    gitlab_rails['smtp_authentication'] = "login"
    gitlab_rails['smtp_enable_starttls_auto'] = true
    gitlab_rails['smtp_tls'] = true
    gitlab_rails['gitlab_email_from'] = "support@ttlsa.com"
    
    • 再次执行 gitlab-ctl reconfigure
  • 相关阅读:
    Jenkins的安全控制
    浅谈JNDI的使用
    hdu 4544 湫湫系列故事——消灭兔子
    如何在工作和实践中学习射频知识
    JSONObject 解析
    SharePoint 2010 WebPart Web部分 总的膏
    J2EE学习笔记
    C和指针 (pointers on C)——第十二章:利用结构和指针
    UVA
    EasyUI-DataGrid多线动态实现选择性合并
  • 原文地址:https://www.cnblogs.com/morya/p/5461306.html
Copyright © 2011-2022 走看看