Mac Install Tomcat

Source: Internet
Author: User
Tags apache tomcat

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.