乌班图安装tomcat8.x

1、下载apache-tomcat-8.5.23.tar.gz

2、解压apache-tomcat-8.5.23

3、授权 sudo chmod 777 -R apache-tomcat-8.5.23

4、配置jdk,乌班图配置jdk会存在一些问题参见《乌班图安装eclipse和jdk》

export JAVA_HOME=/usr/java/jdk1.8.0_111
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:%{JAVA_HOME}/lib:%{JRE_HOME}/lib
export PATH=${JAVA_HOME}/bin:$PATH

5、配置export TOMCAT_HOME=/usr/tomcat/apache-tomcat-8.5.23

6、sudo ./startup.sh

7、出现Using CLASSPATH:       /usr/local/apache-tomcat-8.5.23/bin/bootstrap.jar:/usr/local/apache-tomcat-8.5.23/bin/tomcat-juli.jar
Tomcat started.安装成功!



你可能感兴趣的:(Tomcat)