#安装准备,git-2.17.0
#删除原装git
yum remove git
#安装gcc
yum install gcc
#安装g++
yum install gcc-c++
#安装编译所需的包
yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel
apt-get install libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev
yum install gcc perl-ExtUtils-MakeMaker
#开始安装
cd /home/software
wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.17.0.tar.gz
tar xzvf git-2.17.0.tar.gz
cd git-2.17.0
./configure --prefix=/usr/local/git-2.17.0
make
make install
echo "export GIT_HOME=/usr/local/git-2.17.0" >> /etc/profile
echo "export PATH=\$PATH:\$GIT_HOME/bin" >> /etc/profile
source /etc/profile
上一篇

安装fastdfs
2019-02-25
下一篇

安装ftp
2019-02-25