Windows 7
启动/停止服务:$TOMCAT_HOME/bin/startup.bat, shutdown.bat;
修改http监听端口:$TOMCAT_HOME/conf/server.xml, connector的port属性值;
默认加载目录:\(TOMCAT_HOME/webapps/ROOT 自己应用的目录:在\)TOMCAT_HOME/webapps下新建一个目录,将html,jsp文件放入其中即可;
Ubuntu
Unzip tomcat tarball apache-tomcat-8.5.11.tar.gz to "$HOME/apps". Install sdkman, install JDK 8 with it.
If source
sdkman init script is too slow,
add the following lines into ~/.zshrc:
export JAVA_HOME="$HOME/.sdkman/candidates/java/8u111"
export PATH=$JAVA_HOME/bin:$PATH