centos6.5安裝git
軟體包連結:https://git.kernel.org/pub/scm/git/git.git/snapshot/git-2.7.2.tar.gz
官網連結:https://git.kernel.org/pub/scm/git/git.git/refs/tags
wget下載https開頭的網址域名 時報錯,你可能需要加上 --no-check-certificate 選項
例如:wget --no-check-certificate https://git.kernel.org/pub/scm/git/git.git/snapshot/git-2.7.2.tar.gz
1、安裝編譯git時需要的包
# yum -y install gcc openssl openssl-devel curl curl-devel unzip perl perl-devel expat expat-devel zlib zlib-devel asciidoc xmlto gettext-devel openssh-clients
2、新建資料夾 mkdir
# cd /usr/local
# mkdir git
3、下載解壓tar包
#wget --no-check-certificate https://git.kernel.org/pub/scm/git/git.git/snapshot/git-2.7.2.tar.gz
# tar xzf git-2.7.2.tar.gz
4、編譯安裝
# make prefix=/usr/local/git all doc
# make prefix=/usr/local/git install
5、 配置環境變數
# vim /etc/profile
底部追加 export PATH=/usr/local/git/bin:$PATH
# source /etc/profile 使更新生效
6、安裝成功
git --version
顯示版本號“git version 2.7.2”
相關文章
- CentOS6.5安裝pipCentOS
- CentOS6.5 安裝opensslCentOS
- CentOS6.5安裝ScrapyCentOS
- Centos6.5 Docker安裝CentOSDocker
- CentOS6.5安裝MongoDBCentOSMongoDB
- CentOS6.5安裝RHBaseCentOS
- CentOS6.5安裝RHiveCentOSHive
- CentOS6.5下安裝mongodbCentOSMongoDB
- CentOS6.5安裝VMware ToolsCentOS
- CentOS6.5安裝RHadoopCentOSHadoop
- Centos6.5 IPython安裝CentOSPython
- CentOS6.5安裝sqlite3CentOSSQLite
- CentOS6.5安裝ElasticSearch6.2.3CentOSElasticsearch
- CentOS6.5 安裝Zookeeper叢集CentOS
- CentOS6.5安裝Elasticsearch5.3.0CentOSElasticsearchH5
- centos6.5下安裝配置hudsonCentOS
- centos6.5安裝php5.6.0CentOSPHP
- 在Centos6.5上安裝ossfsCentOS
- CentOS6.5安裝JDK1.8CentOSJDK
- CentOS6.5安裝Maven3.2.5CentOSMaven
- CentOS6.5安裝Elasticsearch1.7.5CentOSElasticsearch
- CentOS6.5安裝Twemproxy叢集CentOS
- CentOS6.5 安裝Storm叢集CentOSORM
- CentOS6.5 安裝Kafka叢集CentOSKafka
- CentOS6.5 安裝Spark叢集CentOSSpark
- 安裝GitGit
- Git安裝Git
- centos6.5上安裝mysql 5.7.20CentOSMySql
- CentOS6.5安裝python3.7CentOSPython
- CentOS6.5安裝Kibana5.3.0CentOS
- centos6.5上安裝discuzX3.3CentOS
- CentOS6.5安裝nginx1.20CentOSNginx
- CentOS6.5上安裝MySQL5.6CentOSMySql
- CentOS6.5安裝Tomcat8.0CentOSTomcat
- CentOS6.5安裝Redis資料庫CentOSRedis資料庫
- CentOS6.5下安裝Open vSwitchCentOS
- CentOS6.5安裝sqoop2CentOSOOP
- 02 安裝git、安裝TortoiseGitGit