默认mac已经安装好java jdk-----/Library/Java/JavaVirtualMachines
1. http://tomcat.apache.org/download-70.cgi 下载7.0版本最新的Tomcat
2. sudo unzip ~/Download/apache-tomcat-7.0.67.zip -d /Library
3. cd /Libary
4. sudo mv apache-tomcat-7.0.67.zip Tomcat
5. sudo sh /Library/Tomcat/bin/startup.sh
6. sudo vi /Library/Tomcat/conf/tomcat-users.xml
7. 本机访问 http://localhost:8080
关闭tomcat sudo sh /Library/Tomcat/bin/shutdown.sh