tutorial on installing Tomcat servers on Mac OS _java

Source: Internet
Author: User
Tags apache tomcat

For Apache Tomcat estimated a lot of children's shoes will be, so today's simple to say on the Mac on the installation of Tomcat;

First step: Download tomcat

Here himi download the Tomcat version:7.0.27

Direct Download Address: http://tomcat.apache.org/download-70.cgi

Directly download the following check can be:

The second step: Download complete, and then free to put the directory bar, here Himi into the/usr/local/

Right-click your Mac finder-> go to the folder->/usr/local the entire directory of the Tomcat folder that you just unzipped, as shown in the following image:

Of course we can put Tomcat's bin path into the environment variable to facilitate your future operations on Tomcat:

1. Open your terminal: then enter the Pico. Bash_profile carriage return

2. Then add the path to your Tomcat in the following figure:

After editing, control+x (save) Continue: Y (agree) enter;

Step three: Start Tamcat;

1 If you configure (convenient) This step, you can enter startup.sh directly in the terminal

2 If you do not configure (convenient) This step, first CD xxxx (XXX indicates your tomcat to the path), and then enter startup.sh

Attention:

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

Start Terminal: input

 sudo chmod 755 xxx/bin/*.sh   

(XXX indicates the path to which you Tomcat) enter;

OK, again in the terminal input startup.sh to start Tomcat;

If it appears as follows:

Ok,comcat start-up complete, we monitor under:

Open your safari and then the URL input http://localhost:8080/

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

Note: The tomcat8.0.9 version was originally installed and the browser was unable to display the home page when it was started. By reading the readme, the request Java version 7.0 above, this machine 6.0 version, does not meet the requirement, therefore installs the tomcat7.0.55 version, may use normally

Related Article

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.