zoukankan      html  css  js  c++  java
  • 调用git命令行执行更新的思路

    cd /usr/local/software/CloudPlatformUtil/GitLab
    
    # CentOS6.5自带的git版本是1.7.1
    # 安装高版本git
    wget -O git.zip https://github.com/git/git/archive/master.zip
    unzip git.zip
    cd git-master
    autoconf
    ./configure --prefix=/usr/local
    make && make install
    rm -rf /usr/bin/git
    ln -s /usr/local/bin/git /usr/bin/git
    
    rm -rf git.zip
    
    git --version
    git config --global user.name "huanghai"
    git config --global user.email superhuanghai@126.com
    git init
    #使用用户名和密码进行连接
    git clone http://huanghai:*******@10.10.14.221/util/CloudPlatformUtil.git
    
    
    这个git中要保存编译后的代码+SQL升级脚本+python3升级用的脚本三部分组成,建议组成结构如下:
    
    
    CloudPlatformUtil.git
    --------UpdateSql
           20171015
                  updateXueJi.sql
              updateJiGuan.sql
               20171124
              updateQian.sql
    
        UpdatePy
           20171015
              updateparentredis.py
           20171129
              updatestudentssdb.py
        dsideal_yy
             aaaa
            bbbb
              cccc.class
              dddd.png
    
            
  • 相关阅读:
    高效求解素数
    搭建redis集群
    搭建Spark高可用集群
    redis持久化
    elasticsearch简介
    java反射机制
    hdfs的客户端操作
    hdfs运行机制
    大数据概念
    hive
  • 原文地址:https://www.cnblogs.com/littlehb/p/7699830.html
Copyright © 2011-2022 走看看