1.升级原因
在部署falcon的sender的时候,出现报错fatal: HTTP request failed,通过度娘的了解疑似和git有关系,那么就尝试升级git
# git --version
git version 1.7.0.1
2.安装依赖
如果已安装就忽略,缺哪个装哪个
yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker
3.卸载git
# yum remove git
4.下载文件
# cd /usr/src
# wget -O git.zip https://github.com/git/git/archive/master.zip
# unzip git.zip && rm git.zip
5.安装部署
# make prefix=/usr/local/git all
# make prefix=/usr/local/git install
# /usr/local/git/bin/git --version
# echo 'export PATH=$PATH:/usr/local/git/bin' >> /etc/bashrc
# source /etc/bashrc
6.验证
# git --version
git version 2.20.GIT