chmod 755 jdk-6u21-linux-x64.bin //设置本用户具有写、执行、读的权限
sh jdk-6u21-linux-x64.bin //安装,需要输入yes来统一License agreement
mv jdk1.6.0_21 ../local //统一安装到local
vi /home/work/.bash_profile //修改JAVA相关的常量和路径,添加以下内容
export JAVA_HOME=/home/work/local/jdk_1.6.0_21
export CLASSPATH=$JAVA_HOME/lib:$JAVA_HOME/jre/lib
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH:$HOME/bin
保存,退出,重新登录,echo $ JAVA_HOME, echo $ PATH, echo $ CLASSPATH,可以查看是否设置成功
wget http://mirrors.tuna.tsinghua.edu.cn/apache/maven/maven-3/3.0.4/binaries/apache-maven-3.0.4-bin.tar.gz
tar -xzvf apache-maven-3.0.4-bin.tar.gz
mv apache-maven-3.0.4 /home/work/local //统一安装到local
vi /home/work/.bash_profile //修改相关的常量和路径,添加以下内容
export MAVEN_HOME=/home/work/local/apache-maven-3.0.4
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$MAVEN_HOME:$PATH:$HOME/bin
source /home/work/.bash_profile
mvn -version//显示如下内容,证明安装成功
Apache Maven 3.0.4 (r1232337; 2012-01-17 16:44:56+0800)Maven home: /home/work/local/apache-maven-3.0.4Java version: 1.6.0_21, vendor: Sun Microsystems Inc.Java home: /home/work/local/jdk1.6.0_21/jreDefault locale: en_US, platform encoding: ISO-8859-1OS name: "linux", version: "2.6.9_7-7-0-0", arch: "amd64", family: "unix"
wget http://mirrors.tuna.tsinghua.edu.cn/apache//ant/binaries/apache-ant-1.8.4-bin.tar.gz
tar -zxvf apache-ant-1.8.4-bin.tar.gz
mv apache-ant-1.8.4 /home/work/local/
vi /home/work/.bash_profile //修改相关的常量和路径,添加以下内容export ANT_HOME=/home/work/local/apache-ant-1.8.4
export CLASSPATH=$JAVA_HOME/lib:$JAVA_HOME/jre/lib:$ANT_HOME/lib export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$MAVEN_HOME/bin:$ANT_HOME/bin:$PATH:$HOME/bin:
4. 安装Python
tar -zxvf Python-2.6.8.tgz
cd Python-2.6.8
./configure --prefix=/home/work/local
make
make install
5.有可能jdk是rpm的