MAC 10.10 Configuring the Tomcat server

Source: Internet
Author: User
Tags tomcat server

One, install the JDK for your cute Mac computer;


Because not all users need Java, OS X does not pre-install Java in default state, and can be installed manually if you want.


1.http://support.apple.com/kb/DL1572
download it on the Apple website.
HTTP://SUPPORT.APPLE.COM/DOWNLOADS/DL1572/EN_US/JAVAFOROSX2014-001.DMG


2.Http://www.oracle.com/technetwor ... ownloads/index.html
Download the latest version of the Java 8 JDK installation to Oracle.

after installation in terminal input

Java-version


If the version is displayed, the instructions are installed.

if shown below, it means that the pair is not installed and needs to be restarted.

No Java Runtime present, requesting install.




II. Configuring TOMCAT


1. Download Tomcat
Download the relevant compression package from the Tomcat Project homepage and extract the appropriate files under ~/downloads after decompression apache-tomcat-7.0.40

2.Tomcat Configuration

unzip and find the corresponding decompression file apache-tomcat-7.0.40, Copy it to the library/directory and rename it to Tomcat

Move apache-tomcat-7.0.40 to the Usr/local folder
sudo mkdir/usr/local # # creates the Usr/local folder and does not need to be created if the/usr/local folder already exists
sudo mv ~/downloads/apache-tomcat-7.0.40/usr/local # # Move unzip folder to Usr/local

Create a symbolic Link to (/library/tomcat) for Tomcat
sudo ln-s/usr/local/apache-tomcat-7.0.40/library/tomcat
 
set up ownership for symbolic link
sudo chown-r <mac username >/library/tomcat
 
Open Tomcat under the Shell's access rights
sudo chmod +x/library/tomcat/bin/*.sh
 
the Tomcat service can then be started via library/tomcat/bin/startup.sh.




Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Configuring the Tomcat server for MAC 10.10

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.