CentOS7编译安装Git 有更新!
环境
系统硬件:CPU : 2 * 4核,内存 2G
系统版本:CentOS-7.2.1511 Core
安装步骤
1.显示服务器版本
[root@localhost ~]# cat /etc/redhat-release
CentOS Linux release 7.2.1511 (Core)
[root@localhost ~]# uname -a
Linux localhost.localdomain 3.10.0-327.36.3.el7.x86_64 #1 SMP Mon Oct 24 16:09:20 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux```
2.安装git
2.1 下载git-2.11.0.tar.gz
[root@localhost ~]# cd /usr/local/src
[root@localhost ~]# wget https://www.kernel.org/pub/software/scm/git/git-2.11.0.tar.gz