zoukankan      html  css  js  c++  java
  • gitlab本地部署方法(ubuntu16.04+gitlab9.5.5)

    Gitlab本地部署方法

     

    1 前期准备

    电脑配置:windows7 ,内存8GB以上(因为有4GB左右要分配给虚拟机中的ubuntu)

    虚拟机:VMware

    Linux系统:ubuntu16.04 64bit

    2 Gitlab的搭建

    2.1 Gitlab的安装

    1.安装依赖包,运行命令

     sudo apt-get install curl openssh-server ca-certificates postfix

    执行完成后,出现邮件配置,选择Internet那一项(不带Smarthost的)

    2.安装gitlab-ce软件包

    https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/ubuntu/pool/xenial/main/g/gitlab-ce/链接中下载最新版gitlab-ce(这里下载gitlab-ce_9.5.5-ce.0_amd64.deb)

    3.执行命令:

    apt-get update

    dpkg –i gitlab-ce_9.5.5-ce.0_amd64.deb

     

    4.修改gitlab的配置

    gedit /etc/gitlab/gitlab.rb

    修改external_url为

    external_url 'http://172.16.15.144'

    该ip地址为ubuntu的ip地址(具体采用ifconfig查看)

    注意:gitlab的ip必须跟ubuntu的ip相同,这样局域网中其他计算机才能访问到gitlab

    5.gitlab配置重新生成

    gitlab-ctl reconfigure

    6.检查GitLab是否安装好并且已经正确运行,输入下面的命令

     sudo gitlab-ctl status

    7.如果得到类似下面的结果,则说明GitLab运行正常

    run: gitlab-workhorse: (pid 1148) 884s; run: log: (pid 1132) 884s  

    run: logrotate: (pid 1150) 884s; run: log: (pid 1131) 884s 

    run: nginx: (pid 1144) 884s; run: log: (pid 1129) 884s 

    run: postgresql: (pid 1147) 884s; run: log: (pid 1130) 884s

    run: redis: (pid 1146) 884s; run: log: (pid 1133) 884s 

    run: sidekiq: (pid 1145) 884s; run: log: (pid 1128) 884s   

    run: unicorn: (pid 1149) 885s; run: log: (pid 1134) 885s

    8.在浏览器地址栏中输入: http://172.16.15.144,即可访问GitLab的Web页面

    参考资料:

    1.http://www.jianshu.com/p/92f97939e33a

    2.https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/ubuntu/pool/xenial/main/g/gitlab-ce/

  • 相关阅读:
    window 操作
    idea使用
    安装zookeeper
    resource和autowired
    python浅见 (Python 3000)
    Tomcat服务器
    servlet
    事件是一种委托吗?什么是委托?什么是事件?
    int值类型的ToString()方法是否装箱
    抽象类,虚方法与普通类的区别
  • 原文地址:https://www.cnblogs.com/wangkevin5626/p/7595070.html
Copyright © 2011-2022 走看看