zoukankan      html  css  js  c++  java
  • (转)CentOS下一键安装GitLab

    【环境准备】
    OS: CentOS 6.3 x86_64

    【安装要求】
    如果有条件,提供一台全新的Server(仅仅只安装了一些系统的软件包),可以直接使用一键安装脚本(gitlab-install-el6.sh)来搭建,非常容易,只需要5步骤,如下:

    1> 安装EPEL扩展源
    切换到root用户
    $ sudo -i
    # rpm -ivh http://fr2.rpmfind.net/linux/epel/6/x86_64/epel-release-6-8.noarch.rpm

    2>  安装git
    # yum install git

    3> 下载gitlab-installer.sh安装脚本
    # git clone https://github.com/mattias-ohlsson/gitlab-installer.git

    4>  执行安装脚本
    # cd gitlab-installer/
    # ./gitlab-install-el6.sh

    等待脚本执行完毕后,会提示如下信息(比如Server主机名为:heydevops-node-2):

    01 ### Done ########################################
    02 #
    03 # You have your MySQL root password in this file:
    04 # /config/database.yml
    05 #
    06 # Point your browser to:
    07 http://heydevops-node-2 (or: http://[host-ip])
    08 # Default admin username: admin@local.host
    09 # Default admin password: 5iveL!fe
    10 #
    11 #################################################

    5> 将脚本的Ruby版本指向到ruby-1.9.3-p392
    # vim /home/git/gitlab-shell/bin/gitlab-shell

    1 #!/usr/local/rvm/bin/ruby-1.9.3-p392


    接着,就可以通过 http://[host-ip] ([host-ip]是Server的IP)来访问GitHub了,登陆界面如下:

    原文链接:http://blog.csdn.net/yanjiangbo/article/details/39154573

  • 相关阅读:
    前端js(一)
    前端CSS
    前端HTML
    视图等
    Navicat使用
    查询语句
    SpringBoot不能直接访问templates下的静态资源
    Mybatis什么时候用${}
    thymeleaf使用restul风格URL
    SpringBoot使用PageHelper
  • 原文地址:https://www.cnblogs.com/sfnz/p/4719005.html
Copyright © 2011-2022 走看看