请尊重他人的劳动成果,转载请务必注明出处.谢谢!
Java安装设置
下载rpm包:
wget http://download.oracle.com/otn-pub/java/jdk/8u101-b13/jdk-8u101-linux-x64.rpm?AuthParam=1476005353_f676def9639b5be1f6a6d3a825643846 wget http://download.oracle.com/otn-pub/java/jdk/7u79-b15/jdk-7u79-linux-x64.rpm?AuthParam=1476775513_1f4f41d4e8dad35b9968f194a9c6c721
安装JDK
rpm -ivh jdk-8u101-linux-x64.rpm
设置JAVA_HOME
vim /etc/profile export JAVA_HOME=/usr/java/jdk1.8.0_101 export JRE_HOME=$JAVA_HOME/jre export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib export PATH=$JAVA_HOME/bin:$PATH
立即生效配置
source /etc/profile 或 reboot
查看
echo $JAVA_HOME java -version
Mave安装设置
下载安装包
wget http://apache.fayea.com/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz
解压文件
tar -xzvf apache-maven-3.3.9-bin.tar.gz
设置环境变量
vim /etc/profile export M2_HOME="/usr/local/bin/apache-maven-3.3.9" export MAVEN_OPTS="-Xms512m -Xmx512m" export PATH=$M2_HOME/bin:$PATH
立即生效配置
source /etc/profile
查看
mvn -version
Git安装设置
卸载自带的低版本git
yum remove git
下载最新版本
wget https://github.com/git/git/archive/v2.10.0.tar.gz
安装步骤
yum install gcc gcc-c++ kernel-devel autoconf yum install perl perl-ExtUtils-CBuilder perl-ExtUtils-MakeMaker yum install gettext-devel expat-devel cpio yum install openssl-devel zlib-devel curl curl-devel tar zxvf v2.10.0.tar.gz cd git-2.10.0 autoconf ./configure make make install