安装Tomcat

sudo tar zxvf apache-tomcat-6.0.26.tar.gz -C /opt
sudo mv /opt/apache-tomcat-6.0.26.tar.gz  /opt/tomcat

export CLASSPATH=.:/usr/lib/jvm/java/jdk1.6.0_20/lib
export JAVAHOME=/usr/lib/jvm/java/jdk1.6.0_20

退出重新登陆或 运行  source /etc/profile

sudo /opt/apache-tomcat-6.0.26/bin/startup.sh

你可能感兴趣的:(java,apache,jvm,tomcat,c)