Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 13 years ago.
下载适用于 Linux 的 JDK(如下所示):jdk-6u20-linux-i586-rpm.bin(适用于 Linux 的 Java 6 update 20!)。
下载后,执行这些命令:
[root@localhost ~]# cd Desktop/ [root@localhost Desktop]# chmod +x jdk-6u20-linux-i586-rpm.bin
执行 JDK 安装:
[root@localhost Desktop]# ./jdk-6u20-linux-i586-rpm.bin [root@centos ~]# yum -y remove java-1.4.2-gcj-compat [root@localhost Desktop]# vi /etc/profile
在行 -- # 函数和别名放入 /etc/bashrc 后放置:
export JAVA_HOME=/usr/java/jdk1.6.0_20 export PATH=$PATH:$JAVA_HOME/bin export CLASSPATH=.:$JAVA_HOME/jre/lib:$JAVA_HOME/lib:$JAVA_HOME/lib/tools.jar
注意 java 版本!和目录
[root@localhost Desktop]# source /etc/profile [root@localhost Desktop]# java -version
安装 tomcat 6:在 http://tomcat.apache.org/download-60.cgi 下载 tomcat ,二进制发行版 - 核心,文件 .tar.gz。并执行:
[root@localhost Desktop]# tar zxvf apache-tomcat-6.0.26.tar.gz [root@localhost Desktop]# mv apache-tomcat-6.0.26/ /usr/local/tomcat [root@localhost Desktop]# rm -f apache-tomcat-6.0.26.tar.gz [root@localhost Desktop]# vi /etc/profile
在 Java 行后添加:
export TOMCAT_HOME=/usr/local/tomcat export CATALINA_HOME=/usr/local/tomcat export CLASSPATH=$CLASSPATH:$CATALINA_HOME/common/lib
执行以下命令:
[root@localhost Desktop]# source /etc/profile [root@localhost Desktop]# /usr/local/tomcat/bin/startup.sh
Download JDK for Linux (like this): jdk-6u20-linux-i586-rpm.bin (for Java 6 update 20 for linux!).
After your download, execute theses commands:
execute the JDK install:
After line -- # Functions and aliases go in /etc/bashrc put this:
Attention for java version! And directories
Installing tomcat 6: donwload tomcat at http://tomcat.apache.org/download-60.cgi, Binary Distributions – Core, file .tar.gz. And execute:
Add after Java's line:
Execute this:
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(1)
下载适用于 Linux 的 JDK(如下所示):jdk-6u20-linux-i586-rpm.bin(适用于 Linux 的 Java 6 update 20!)。
下载后,执行这些命令:
执行 JDK 安装:
在行 -- # 函数和别名放入 /etc/bashrc 后放置:
注意 java 版本!和目录
安装 tomcat 6:在 http://tomcat.apache.org/download-60.cgi 下载 tomcat ,二进制发行版 - 核心,文件 .tar.gz。并执行:
在 Java 行后添加:
执行以下命令:
Download JDK for Linux (like this): jdk-6u20-linux-i586-rpm.bin (for Java 6 update 20 for linux!).
After your download, execute theses commands:
execute the JDK install:
After line -- # Functions and aliases go in /etc/bashrc put this:
Attention for java version! And directories
Installing tomcat 6: donwload tomcat at http://tomcat.apache.org/download-60.cgi, Binary Distributions – Core, file .tar.gz. And execute:
Add after Java's line:
Execute this: