zoukankan      html  css  js  c++  java
  • centeros7 gitlap安装

    官网:https://about.gitlab.com/install/#centos-7

    https://www.cnblogs.com/LUA123/p/9675191.html

    sudo yum install -y curl policycoreutils-python openssh-server
    sudo systemctl enable sshd
    sudo systemctl start sshd
    
    sudo firewall-cmd --permanent --add-service=http
    sudo firewall-cmd --permanent --add-service=https
    sudo systemctl reload firewalld
    
    sudo yum install postfix
    sudo systemctl enable postfix
    sudo systemctl start postfix
    
    curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash
    
    sudo EXTERNAL_URL="https://gitlab.example.com" yum install -y gitlab-ee
    

    RPM安装方式

    https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7

    【最好给服务器分配至少4G内存

    先检查一下依赖:sshd

    [root@localhost soft]# rpm -qa|grep openssh-server
    openssh-server-7.4p1-11.el7.x86_64
    [root@localhost soft]# ps -e|grep sshd
      1107 ?        00:00:00 sshd
     12585 ?        00:00:00 sshd
     12590 ?        00:00:00 sshd

    如果你没有,那么:

    sudo yum install -y curl policycoreutils-python openssh-server
    sudo systemctl enable sshd
    sudo systemctl start sshd
    sudo firewall-cmd --permanent --add-service=http
    sudo systemctl reload firewalld

    再检查一下postfix

    [root@localhost soft]# rpm -qa|grep postfix
    postfix-2.10.1-6.el7.x86_64
    [root@localhost soft]# ps -e|grep postfix

    如果你没有,那么

    sudo yum install postfix
    sudo systemctl enable postfix
    sudo systemctl start postfix

    ..

    最后找到你存放rpm目录并进入

    [root@localhost soft]# wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-11.0.6-ce.0.el7.x86_64.rpm
    --2018-09-19 03:12:09--  https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-11.0.6-ce.0.el7.x86_64.rpm
    Resolving mirrors.tuna.tsinghua.edu.cn (mirrors.tuna.tsinghua.edu.cn)... 101.6.8.193, 2402:f000:1:408:8100::1
    Connecting to mirrors.tuna.tsinghua.edu.cn (mirrors.tuna.tsinghua.edu.cn)|101.6.8.193|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 436017937 (416M) [application/x-redhat-package-manager]
    Saving to: ‘gitlab-ce-11.0.6-ce.0.el7.x86_64.rpm’
    
    100%[=========================================================================================================================================================>] 436,017,937 1.50MB/s   in 4m 37s 
    
    2018-09-19 03:16:46 (1.50 MB/s) - ‘gitlab-ce-11.0.6-ce.0.el7.x86_64.rpm’ saved [436017937/436017937]

    ..查看

    [root@localhost soft]# ll
    total 695524
    -rw-r--r--. 1 root root 436017937 Sep  7 01:24 gitlab-ce-11.0.6-ce.0.el7.x86_64.rpm
    -rw-r--r--. 1 root root 189756259 Mar 26 07:20 jdk-8u161-linux-x64.tar.gz
    -rw-r--r--. 1 root root  49766096 Mar 26 07:20 kafka_2.11-1.0.1.tgz
    -rw-r--r--. 1 root root  36668066 Mar 26 07:20 zookeeper-3.4.11.tar.gz
    [root@localhost soft]# 

    安装

    [root@localhost soft]# rpm -ivh gitlab-ce-11.0.6-ce.0.el7.x86_64.rpm 
    warning: gitlab-ce-11.0.6-ce.0.el7.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID f27eab47: NOKEY
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:gitlab-ce-11.0.6-ce.0.el7        ################################# [100%]
    It looks like GitLab has not been configured yet; skipping the upgrade script.
    
           *.                  *.
          ***                 ***
         *****               *****
        .******             *******
        ********            ********
       ,,,,,,,,,***********,,,,,,,,,
      ,,,,,,,,,,,*********,,,,,,,,,,,
      .,,,,,,,,,,,*******,,,,,,,,,,,,
          ,,,,,,,,,*****,,,,,,,,,.
             ,,,,,,,****,,,,,,
                .,,,***,,,,
                    ,*,.
      
    
    
         _______ __  __          __
        / ____(_) /_/ /   ____ _/ /_
       / / __/ / __/ /   / __ `/ __ 
      / /_/ / / /_/ /___/ /_/ / /_/ /
      \____/_/\__/_____/\__,_/_.___/
      
    
    Thank you for installing GitLab!
    GitLab was unable to detect a valid hostname for your instance.
    Please configure a URL for your GitLab instance by setting `external_url`
    configuration in /etc/gitlab/gitlab.rb file.
    Then, you can start your GitLab instance by running the following command:
      sudo gitlab-ctl reconfigure
    
    For a comprehensive list of configuration options please see the Omnibus GitLab readme
    https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md
  • 相关阅读:
    正式定居博客圆,发些以前在Topcoder上的练习题,对算法和STL有兴趣的朋友可以看下:)
    TopCoder真题讲解之二
    “命名空间“System”中不存在类型或命名空间名称“Linq”(是缺少程序集引用吗?)”
    短信发送
    JavaScript打印和预览等
    .net获取IP地址的几种方法转载
    WinForm中控件与背景透明
    用C#实现C/S模式下软件自动在线升级转
    Microsoft Access 时间函数汇总
    .net 发送Email 单发 群发
  • 原文地址:https://www.cnblogs.com/But-you/p/11585323.html
Copyright © 2011-2022 走看看