1. Download Tomcat 7.0
Address: http://tomcat.apache.org/download-70.cgi
Binary Distributions -> Core
Choose zip or tar.gz format
2. Installation
Unzip the downloaded zip file to the /Library/ directory
Open the directory Tomcat/bin and execute in the terminal: sudo sh /Library/Tomcat/bin/startup.sh to start the Tomcat server
Prompt error:
Solution:
Execute under the terminal: sudo chmod +x /Library/Tomcat/bin/*.sh, add executable permissions to all shell script files in the bin directory
Re-execute the start server.sh script, success!
3. Test
Open Safari browser, enter in the address bar: http://localhost:8080, press Enter!
See the Tomcat test page
Reprinted in: https://www.cnblogs.com/dyingbleed/archive/2012/12/25/2831821.html