Installing and configuring Apache Tomcat in Mac Systems

Source: Internet
Author: User
Tags apache tomcat

1. Download Tomcat

http://tomcat.apache.org/download-80.cgi

Download the zip package, unzip it and put it to any address, in this case the /users/guqiang/tomcat/apache-tomcat-8.5.8/

2. Configure Tomcat

Using the terminal

Enter Pico. Bash_profile carriage return;

Enter export path= $PATH:/user/guqiang/tomcat/apache-tomcat-8.5.8/bin

After the input is complete, click: control+x;

Click y to save;

Click Enter to exit the edit;

3. Start Tomcat

Startup.sh in the bin directory where Tomcat is running

/users/xxx/tomcat/apache-tomcat-8.5.8/bin/startup.sh

See Tomcat started. It means that Tomcat started successfully.

If the word "Permission denied" appears after startup.sh, you will need to set permissions on this directory:

Start Terminal: Enter sudo chmod 755 xxx/bin/*.sh (XXX Indicates the path you tomcat put to) enter;

4. Verify that Tomcat is started

Open your Safari, then enter the URL http://localhost:8080/

If you can open the Tomcat home page correctly, the Tomcat configuration starts successfully:

Installing and configuring Apache Tomcat in Mac Systems

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.