First, download
First download the full version of the tomcat.tar.gz package on the Tomcat website, under core
Note:
Zip for Windows operating systems, tar.gz for UNIX and Linux operating systems.
Binary distributions Core: This column is for running the installation files directly.
Deployer:
Source code distributions: This column is the Tomcat source.
Download good software in copy unzip to/usr/local folder
1. Finder right button "Go to Folder ..." Enter/usr/local to copy the downloaded file apache-tomcat-8.5.6.tar.gz the past
2, in the terminal cp-r/user/s/downloads/apache-tomcat-8.5.6.tar.gz/usr/local
Apache-tomcat-8.5.6.tar.gz
Then modify the folder name to TOMCAT8 MV apache-tomcat-8.5.6 TOMCAT8
Second, installation and configuration
Terminal input: Pico. Bash_profile
Then put your tomcat into the path as follows:
Export path= $PATH:/usr/local/tomcat8/bin
Add, Control + x (Save), Y (Agree), enter (exit)
Third, start Tomcat
Terminal input: sudo chomd 755/usr/local/tomcat8/bin/*.sh carriage return
Then start tomcat on the terminal input startup.sh
sdemacbook-pro:~ S $ sudo/usr/local/tomcat8/bin/startup.shusing catalina_base: /usr/local/tomcat8using CATALINA _home: /usr/local/tomcat8using catalina_tmpdir:/usr/local/tomcat8/tempusing jre_home: /System/Library/ Java/javavirtualmachines/1.6.0.jdk/contents/homeusing CLASSPATH: /usr/local/tomcat8/bin/bootstrap.jar:/usr/ Local/tomcat8/bin/tomcat-juli.jartomcat started.
Indicates that Tomcat started successfully.
Browser address bar Input: http://localhost:8080/will display the Tomcat Web page
The reason tomcat8.5.6 is not displayed is: RUNNING.txt:
Apache Tomcat 8.5 requires a Java standard Edition runtimeenvironment (JRE) version 7 or later.=========================== ==running with JRE 7 Or later=============================
You can install a high-version JDK test.
-----2016-10-21 15--
Source:mac command Line
MacOS Install Apache Tomcat
Tomcat installation and configuration under Mac
Mac Install Tomcat