日期:2014-05-16 浏览次数:20676 次
jdk 安装
?#chmod +x jdk-1_5_0_22-linux-i586-rpm.bin(添加执行权)
?#./jdk-1_5_0_22-linux-i586-rpm.bin
?jdk默认安装目录为/usr/java/jdk1.5.0_22
?安装完毕为他建立一个链接以节省目录长度
?#ln -s /usr/java/jdk1.5.0_22 /usr/jdk
?
?编辑配置文件
?#vi /etc/profile
?添加如下内容:
?JAVA_HOME=/usr/jdk
?CLASSPATH=$JAVA_HOME/lib/
?PATH=$PATH:$JAVA_HOME/bin
?export PATH JAVA_HOME CLASSPATH
?
?#source /etc/profile
?#java -version
?
?出现:
?java version "1.5.0_22"
?Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_22-b03)
?Java HotSpot(TM) Client VM (build 1.5.0_22-b03, mixed mode, sharing)
?安装成功
出现情况 要卸载软件:
????????? 卸载rpm版的jdk:
?? ?? #rpm -qa|grep jdk
????????? 显示:jdk-1.5.0_22-fcs
????????? 卸载:#rpm -e? --nodeps? jdk-1.5.0_22-fcs
?
tomcat 安装
?#tar -zxvf apache-tomcat-6.0.29.tar.tar -C /usr/local/???????? (解压到/usr/local)
?#ln -s /usr/local/apache-tomcat-6.0.29/ /usr/local/tomcat
?启动tomcat
?#cd /usr/local/tomcat/bin/
?#./startup.sh?? (注意:点代表当前目录下)
?测试http://127.0.0.1:8080/
eclipse 安装
?#tar -zxvf eclipse-jee-helios-linux-gtk.tar.gz -C /usr/local (解压到/usr/local目录下
并生成/usr/local/eclipse目录)
?#cd /usr/local/eclipse/
?#./eclipse (注意:点代表当前目录下)