mac命令行启动关闭tomcat

文章出处:http://blog.csdn.net/napoay/article/details/51678800

一、修改授权

进入tomcat的bin目录,修改授权 sudo chmod 755 *.sh

二、启动

执行启动命令sudo sh ./startup.sh


➜  bin sudo sh ./startup.sh
Using CATALINA_BASE:   /Users/yp/Documents/workspace/apache-tomcat-7.0.68
Using CATALINA_HOME:   /Users/yp/Documents/workspace/apache-tomcat-7.0.68
Using CATALINA_TMPDIR: /Users/yp/Documents/workspace/apache-tomcat-7.0.68/temp
Using JRE_HOME:        /Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home
Using CLASSPATH:       /Users/yp/Documents/workspace/apache-tomcat-7.0.68/bin/bootstrap.jar:/Users/yp/Documents/workspace/apache-tomcat-7.0.68/bin/tomcat-juli.jar
Tomcat started.
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8

访问http://localhost:8080/

关闭 tomcat     sh ./shutdown.sh

你可能感兴趣的:(mac)