zoukankan      html  css  js  c++  java
  • gitlab的安装和配置

    1 使用omnibus gitlab来安装gitlab

    也就是说,将gitlab和它所需要的组件打一个包,即打一个bundle进行安装。

    第一步,安装gitlab的源。

    curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash

    将源改成镜像的源。

    apt-get update

    第二步,安装

    sudo apt-get install gitlab-ce

    2 omnibus gitlab-ce bundle的组件

    包括:nginx、redis和postgres

    3 gitlab的各个配置选项

    3.1 url的配置

    直接将/etc/gitlab/gitlab.rb中的

    external_url 设置成“http://ip/”就可以了。

    然后在浏览器中就可以通过http://ip/来访问了。

    gitlab服务器url修改后,不光要改这个地方的ip,还需要改gitlab.yml中的ip,路径为/opt/gitlab/embedded/service/gitlab-rails/config/gitlab.yml

    改好之后,gitlab-ctl restart

     gitlab:
        ## Web server settings (note: host is the FQDN, do not include http://)
        host: 192.168.1.106
        port: 90
        https: fals

    3.2 smtp的配置

    配置一个gitlab用的邮箱,gitlab用这个邮箱向用户注册的邮箱发送邮件。

    配置好之后的测试:

    gitlab-rails console

    Notify.test_email('收件人邮箱', '邮件标题', '邮件正文').deliver_now

    4 nginx的用途以及各个配置选项

    5 redis的用途以及各个配置选项

    6 postgres的用途以及各个配置选项

    参考:

    https://docs.gitlab.com/omnibus/settings/configuration.html

    https://docs.gitlab.com/omnibus/README.html

    https://docs.gitlab.com/omnibus/settings/README.html

  • 相关阅读:
    3164 质因数分解
    codevs3249搭积木
    codevs 2964公共素数因数
    爱改名的小融1
    单链表基础练习
    并查集(union-find sets)
    string类中字符的大小写转换
    蒜头君学英语--set()练习
    打印锯齿矩阵
    堆积木
  • 原文地址:https://www.cnblogs.com/hustdc/p/7835106.html
Copyright © 2011-2022 走看看