1.官网下载Tomcat,选择zip/tar.gz;并解压缩文件
链接:http://tomcat.apache.org/download-70.cgi
2.打开 终端,输入以下命令:
sudo mkdir -p /usr/local sudo mv ~/Downloads/apache-tomcat-7.0.72 /usr/local
sudo rm -f /Library/Tomcat
sudo ln -s /usr/local/apache-tomcat-7.0.72 /Library/Tomcat
sudo chown -R [你的用户名] /Library/Tomcat
sudo chmod +x /Library/Tomcat/bin/*.sh
3.为了方便,推荐下载Tomcat Controller
链接:http://www.activata.co.uk/downloads/
4.运行Tomcat,打开浏览器测试:
localhost:8080