zoukankan      html  css  js  c++  java
  • gitlab8.0 一键安装 经过自己测试 发送邮件部分最难搞 国内没有说明白的

    邮件发送部分,弄了一天终于弄好啦,翻墙过去查的资料,奶奶的无语

    Gitlab搭建步骤

    一:操作系统环境

             CentOS: 6.5 –x86-64

    二:安装方式

    一种是自定义安装,一种是一键安装

    三:自定义安装

             需要软件环境:

    • Ubuntu/Debian/CentOS/RHEL
    • Ruby (MRI) 2.1
    • Git 1.7.10+
    • Redis 2.4+
    • MySQL or PostgreSQL

             官方文档参考:

             https://github.com/gitlabhq/gitlabhq

    牛人安装步骤参考:

    http://www.centoscn.com/CentosServer/test/2015/0211/4692.html

         http://www.centoscn.com/image-text/install/2015/0320/4929.html

    注意点:

         国内网路你懂的,安装bundler是需要把gem源改为taobao

    $ gem source -r https://rubygems.org/

    $ gem source -a http://ruby.taobao.org/

    四:一键安装

             Gitlab官方地址:https://github.com/gitlabhq/gitlabhq

             Gitlab 官方安装参考:https://about.gitlab.com/installation/

             一键安装包bitnami-gitlab-8.1.4-1-linux-x64-installer.run下载地址:

    https://bitnami.com/stack/gitlab/installer

             安装步骤参考:

                       http://www.tuicool.com/articles/iIR77v

             gitlab管理平台操作使用参考:

                       http://www.cnblogs.com/wintersun/p/3930900.html

    五:gitlab发送邮件设置

             Gitlab的默认安装目录是 /opt/gitlab-8.1.4-1

    @1:
    Vi /opt/gitlab-8.1.4-1/apps/gitlab/htdocs/config/environments/production.rb

    config.action_mailer.perform_deliveries = true

      config.action_mailer.raise_delivery_errors = true

      config.action_mailer.delivery_method = :smtp #邮件发送方式选择smtp

      config.action_mailer.smtp_settings = {

        :address => "pop.exmail.qq.com",#邮件服务器地址

        :port => "25", #smtp协议默认端口

        :domain => "pop.exmail.qq.com", #邮件服务器地址域名

        :authentication => :login, #此处必须是login,不然邮箱不允许登录

        :user_name => "wangdj@skong.com", #邮箱全称帐户名

        :password => "****", #邮箱密码

        :enable_starttls_auto => false #此处必须是false,不然tls协议不允许登录远程邮箱

      }

    @2:

             Cd /opt/gitlab-8.1.4-1/apps/gitlab/htdocs/config/initializers/

             cp smtp_settings.rb.sample smtp_settings.rb

    Vi  /opt/gitlab-8.1.4-1/apps/gitlab/htdocs/config/initializers/ smtp_settings.rb

    ActionMailer::Base.smtp_settings = {

        address: "pop.exmail.qq.com",

        port: 25,

        user_name: "wangdj@skong.com",

        password: "*****",

        domain: "pop.exmail.qq.com",

        authentication: :login,

        enable_starttls_auto: false,

        openssl_verify_mode: 'peer' # See ActionMailer documentation for other possible options

      }

    @3: 把访问协议设置为https,传输更安全

    Vi  /opt/gitlab-8.1.4-1/apps/gitlab/htdocs/config/gitlab.yml

            gitlab:

            host: 192.168.0.86

                 port: 443

             https: true

            email_from: wangdj@skong.com

            support_email: wangdj@song.com

    五:司空gitlab访问地址:

             https://192.168.0.86/

    六:启动/暂停服务

             . /opt/gitlab-8.1.4-1/ctlscript.sh help

             . /opt/gitlab-8.1.4-1/ctlscript.sh start

             . /opt/gitlab-8.1.4-1/ctlscript.sh stop

    七:git学习详细教程参考:

             http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000

  • 相关阅读:
    spring框架
    自己来到这个世界的天数
    迭代器
    String
    mybatis-plus条件参数
    Linux常用命令
    web.xml
    log4j.properties
    springmvc.xml
    applicationContext.xml
  • 原文地址:https://www.cnblogs.com/daojian/p/5018675.html
Copyright © 2011-2022 走看看