yum 安装高版本Git

应用场景:
Centos默认的的yum仓库中的默认版本很低,有时我们需要安装高版本git,编译安装又太麻烦。
遇到问题:
下载源码编译并配置环境变量,虽然可以执行git命令,但是在使用Azure Devops server 中使用git clone源码时,报“not found git”,一时找不到好的解决方案。
解决方案:
通过安装WANDisco仓库

Centos6

yum install http://opensource.wandisco.com/centos/6/git/x86_64/wandisco-git-release-6-1.noarch.rpm
yum -y install git
git version

Centos7

yum install http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-2.noarch.rpm
yum -y install git
git version

以上“遇到的问题”后来又了解决方案:

代理池里面执行一下

./env.sh
sudo ./svc.sh stop
sudo ./svc.sh start

参考地址:Download and configure the agent

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值