1. tomcat 快速入门

  • install
sudo mkdir -p /usr/local/tomcat/

sudo cp -r ~/Downloads/apache-tomcat-8.5.57 /usr/local/tomcat/

sudo chown -R `whoami`:staff /usr/local/tomcat/

sudo chmod u+x /usr/local/tomcat/apache-tomcat-8.5.57/bin/*.sh
  • config
ls /usr/local/tomcat
# tomcat
export CATALINA_BASE=/usr/local/tomcat/apache-tomcat-8.5.57
export CATALINA_HOME=/usr/local/tomcat/apache-tomcat-8.5.57
export PATH=$CATALINA_HOME/bin:$PATH
  • check
catalina.sh version

Using CATALINA_BASE:   /usr/local/tomcat/apache-tomcat-8.5.57
Using CATALINA_HOME:   /usr/local/tomcat/apache-tomcat-8.5.57
Using CATALINA_TMPDIR: /usr/local/tomcat/apache-tomcat-8.5.57/temp
Using JRE_HOME:        /Library/Java/JavaVirtualMachines/jdk1.8.0_261.jdk/Contents/Home
Using CLASSPATH:       /usr/local/tomcat/apache-tomcat-8.5.57/bin/bootstrap.jar:/usr/local/tomcat/apache-tomcat-8.5.57/bin/tomcat-juli.jar
Server version: Apache Tomcat/8.5.57
Server built:   Jun 30 2020 21:49:10 UTC
Server number:  8.5.57.0
OS Name:        Mac OS X
OS Version:     10.15.5
Architecture:   x86_64
JVM Version:    1.8.0_261-b12
JVM Vendor:     Oracle Corporation
  • start/stop
startup.sh

shutdown.sh

1.1. ref doc

作者: 雪之梦技术驿站
链接: https://snowdreams1006.github.io/todo/tomcat-quickstart.html
来源: 雪之梦技术驿站
本文原创发布于「雪之梦技术驿站」,转载请注明出处,谢谢合作!

https://snowdreams1006.github.io/snowdreams1006-wechat-open.png

© snowdreams1006 all right reserved,powered by Gitbook文件修订时间: 2020-09-08 07:40:09

results matching ""

    No results matching ""