Tools/Materials
1,JDK: Version jdk-8u40-macosx-x64.dmg
Http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
2,tomcat: Version Apache-tomcat-8.0.21.zip
Http://tomcat.apache.org/index.html
3,mac,64bit
Method/Step
I. Installing JDK and TOMCAT
1, install JDK: directly open JDK-8U40-MACOSX-X64.DMG Double-click the executable program, the default installation can be.
2, install Tomcat: Directly unzip the download file "Apache-tomcat-8.0.21.zip" to any directory, I put on the desktop, the directory does not have Chinese. Installation path recommended modified to:/users/admin/desktop
。
Note: Do not have Chinese in the catalogue.
Second, test the JDK
Enter the Javac,java,javadoc command under Terminal commands: A graphical interface appears indicating that the installation was successful.
Third, configure the Tomcat environment variable (can not be configured)
Iv. launching the Tomcat service
Enter the command under Terminal:
$CD/users/admin/desktop/apache-tomcat-8.0.21/bin
$chmod u+x *.sh
$sudo sh startup.sh or./startup.sh
Note: Open the Tomcat bin directory, first modify the user executable permissions, and then execute startup (after the direct startup can be)
V. Testing TOMCAT
Open the browser, enter http://localhost:8080 carriage return in the address bar, and if you see a JSP page from Tomcat, your JDK and Tomcat have been successfully built.
Tomcat 8.0 MAC Installation and configuration