To get Tomcat, visit the following link: http://tomcat.apache.org/. Once there, click on the Tomcat 5.5 link under the Download heading. Under Core, select the tar.gz file.
Download the tar.gz file. Mac OS X will probably extract the file to a .tar file in your downloads directory. Move this .tar file to a location on your computer where you would like tomcat. For purposes of this guide, the location will be /Users/user. Double-click the tar to extract it. This should create a directory in /Users/user named something like apache-tomcat . . . Rename this to something simple like tomcat. At this point, you should have the following directory on your machine:
/Users/user/tomcat
There is a file called startup.sh located in the the /Users/user/tomcat/bin directory that needs edited. Open EditRocket and open startup.sh Add the following two lines after the line in startup.sh that starts with EXECUATBLE. Note that for Snow Leopard, you can use 1.6 instead of 1.5 after the Versions text in the first line listed below.
export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home
export CATALINA_HOME=/Users/user/tomcat
To start Tomcat, open up a Terminal window (Applications -> Utilities -> Terminal). cd to the tomcat bin directory by typing the following:
cd /Users/user/tomcat/bin
Type the following:
sh startup.sh
This will start Tomcat. To shutdown tomcat, type sh shutdown.sh
To test the tomcat installation, enter the following in your web browser:
http://localhost:8080/
If the apache tomcat page shows up, the installation was successful.
There is a sample web application called jsp-examples located in the webapps directory under the tomcat installation directory. This location can be used to test your own JSP pages, or you can use the files contained in this directory as a template for creating your own web application.
The jsp-examples can be accessed in your web browser using the following URL: http://localhost:8080/jsp-examples/
相关推荐
2.4.1. General Notes on Installing MySQL on Mac OS X 2.4.2. Installing MySQL on Mac OS X Using Native Packages 2.4.3. Installing the MySQL Startup Item 2.4.4. Installing and Using the MySQL Preference...
Time for action – installing Android SDK and NDK on Mac OS X Setting up Linux Time for action – preparing Ubuntu Linux for Android development Installing Android development kits on Linux Time ...
Installing RAC on AIX
Installing MIUI on Meizu MX2
\Installing RAC on AIX 001.pdf
Installing Activ Test on Your PC
Currently (at mono version 4.2.4) this store remains empty after installing Mono on Mac OS X. Fiddler uses the certificates in this store to validate the certificates of the websites visited. So you ...
It is known to work with Mac OS X versions 10.6.8 (Snow Leopard) through 10.14 (Mojave – see notes below), and has been tested on a wide variety of phones. Although you should be careful with all ...
You will find details for using Tomcat on all major platforms, including Windows, Linux, OS X, Solaris, and FreeBSD, along with specifics on Tomcat configuration files, and step-by-step advice for ...
Mac OS X Installation 17 Package Installation 17 Compiling the Source 18 The Python Prompt 18 Customizing the Interactive Prompt 19 iPython: An Advanced Prompt 20 Installing setuptools 21 ...
Microsoft Windows 2000 Scripting Guide - Installing Software on a Remote Computer
Installing Xenomai 3.x
Installing STLinux on Ubuntu
Installing Your Driver on Windows Millennium INF File Guide
Failed to install Tomcat6 service(Tomcat6安装失败解决方法)
在 OS X Yosemite 上安装 Intel ICPC 以使用 OpenMP 下载适用于 C++ OS X 的英特尔:registered: Parallel Studio XE Composer 版。它对大学生免费。 我是学生,所以我申请了学生许可证。 我收到了一封包含序列号和...
Installing Oracle Database 11g on Linux
Installing Oracle 10G On Linux
面是我在Ubuntu6.06 LTS 下源码编译安装samba主要安装过程,本人第一次用Ubuntu,刚装上去时候,没有gcc编译环境。郁闷了半天。找出这一过程发了不少的时间。可能还有些不妥,不过我经过这样的安装达到了向windows共享...