HZero搭建目录(点击访问)----------------------
HZero搭建(1)- 域名映射
HZero搭建(2)- yum篇
HZero搭建(3)- docker篇
HZero搭建(4)- JDK篇
HZero搭建(5)- Nginx篇
HZero搭建(6)- Node篇
HZero搭建(7)- Git篇
HZero搭建(8)- Maven篇
HZero搭建(9)- Redis篇
HZero搭建(10)- Mysql篇
HZero搭建(11)- Jenkins篇
HZero搭建(12)- 数据初始化篇
安装目录
cd /usr/local/src
删除已有git(原先没有就不用执行)
yum remove git
下载Git 并解压
wget https://www.kernel.org/pub/software/scm/git/git-2.9.4.tar.gz
tar -zxvf git-2.9.4.tar.gz
安装编译包
yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel
yum install gcc perl-ExtUtils-MakeMaker
编译安装:
进入根目录:
cd /usr/local/src/git-2.9.4
安装到/usr/local/git目录:
./configure --prefix=/usr/local/git
编译安装:
make && make install
创建软链:
ln -s /usr/local/git/bin/* /usr/local/bin/
检查安装:(两个-哦!!!)
git --version
出现
代表安装成功