mac tomcat9

进入tomcat官网 下载tomcat9 
http://tomcat.apache.org/download-90.cgi

tomcat启动程序在 /bin/startup.sh 
tomcat关闭程序在 /bin/shudown.sh

启动tomcat: 
给脚本可执行权限然后运行startup.sh

打开下面地址如果出现页面表示成功了: 
http://localhost:8080

mac tomcat9

#为了方便:

#! /bin/bash
#tomcat9 startup.sh 路径 /Users/applezhj/tomcat9/bin
dir=/Users/applezhj/tomcat9/bin
cd $dir
./startup.sh
exit 0

#! /bin/bash
#tomcat9 shutdown.sh 路径 /Users/applezhj/tomcat9/bin
dir=/Users/applezhj/tomcat9/bin
cd $dir
./shutdown.sh
exit 0