The experience of deploying Tomcat in Mac OS X

Source: Internet
Author: User

Because the Mac system was re-installed a few days ago. Get ready to set up some of the necessary lab environments next. Here's a brief summary of what you should be aware of when deploying Tomcat on Mac OS x:

Download the corresponding version number of Tomcat, such as zip inside http://tomcat.apache.org/download-70.cgi.

Download the folder you want to deploy and unzip it. There are two problems that need to be solved, one is the permissions of the script.

In the terminal, navigate to the Tomcat folder and enter

sudo chmod 755./bin/*.sh

The other one is the Java environment variable problem. This is slightly more complicated and can be seen in these presentations:

http://han.guokai.blog.163.com/blog/static/136718271201301183938165/http://www.micmiu.com/lang/java/ set-javahome-on-mac-os-x/

Overall. The simplest method is to write in the environment variable configuration:

Export java_home= '/usr/libexec/java_home '

Note that this is not a single quote, but the key next to 1 on the keyboard.

As for how to change the environment variables, can be a reference here: http://elf8848.iteye.com/blog/1582137 or to participate in my previous blog, more simple.

are set up well afterwards. In the terminal into the Bin folder, enter: Bash startup.sh. You can see the icon for Java, and then you can see the admin page of Tomcat in http://localhost:8080/. I haven't figured it out yet. How can I see the console output of Tomcat? Take a look at this question when you are free.

Update: Just checked. How to output the console information. actually very easy. See here: http://dearseven.blog.163.com/blog/static/1005379222013774319389/so open startup.sh and change the last line to:

# exec "$PRGDIR"/"$EXECUTABLE" start [email protected] "EXEC" $PRGDIR "/" $EXECUTABLE "Run" [email protected] "

can be, very easy.

The experience of deploying Tomcat in Mac OS X

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.