git升级

    1. git --version
    2. yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel asciidoc
    3. yum install gcc perl-ExtUtils-MakeMaker
    4. yum remove git
    5. cd /usr/local/src/
    6. wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.32.0.tar.xz
    7. tar -xvf git-2.32.0.tar.xz
    8. cd git-2.32.0
    9. make prefix=/usr/local/git all
    10. make prefix=/usr/local/git install
    11. echo "export PATH=$PATH:/usr/local/git/bin" >> /etc/profile && source /etc/profile

    安装go,配置go环境

    1. # 修改go env
    2. go env -w GOPRIVATE="gitlab.aishu.cn,gitlab2.aishu.cn"
    3. go env -w GOPROXY="https://repository.aishu.cn:8081/repository/go-all"