One, install the JDK for your cute Mac computer;
Because not all users need Java, OS X does not pre-install Java in default state, and can be installed manually if you want.
1.http://support.apple.com/kb/DL1572
download it on the Apple website.
HTTP://SUPPORT.APPLE.COM/DOWNLOADS/DL1572/EN_US/JAVAFOROSX2014-001.DMG
2.Http://www.oracle.com/technetwor ... ownloads/index.html
Download the latest version of the Java 8 JDK installation to Oracle.
after installation in terminal input
Java-version
If the version is displayed, the instructions are installed.
if shown below, it means that the pair is not installed and needs to be restarted.
No Java Runtime present, requesting install.
II. Configuring TOMCAT
1. Download Tomcat
Download the relevant compression package from the Tomcat Project homepage and extract the appropriate files under ~/downloads after decompression apache-tomcat-7.0.40
2.Tomcat Configuration
unzip and find the corresponding decompression file apache-tomcat-7.0.40, Copy it to the library/directory and rename it to Tomcat
Move apache-tomcat-7.0.40 to the Usr/local folder
sudo mkdir/usr/local # # creates the Usr/local folder and does not need to be created if the/usr/local folder already exists
sudo mv ~/downloads/apache-tomcat-7.0.40/usr/local # # Move unzip folder to Usr/local
Create a symbolic Link to (/library/tomcat) for Tomcat
sudo ln-s/usr/local/apache-tomcat-7.0.40/library/tomcat
set up ownership for symbolic link
sudo chown-r <mac username >/library/tomcat
Open Tomcat under the Shell's access rights
sudo chmod +x/library/tomcat/bin/*.sh
the Tomcat service can then be started via library/tomcat/bin/startup.sh.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Configuring the Tomcat server for MAC 10.10