`
反求诸己
  • 浏览: 543091 次
  • 性别: Icon_minigender_1
  • 来自: 湖南娄底
社区版块
存档分类
最新评论

Installing Tomcat on Mac OS X

 
阅读更多

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/

分享到:
评论

相关推荐

    MySQL V5.5帮助文档

    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...

    HoRNDIS-9.2.pkg 黑苹果--安卓USB共享网络给Mac10.14 版本可以

    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 ...

    Failed to install Tomcat6 service(Tomcat6安装失败解决方法)

    3. **具体错误**:“Failed installing Tomcat6 service”。 4. **错误位置**:在执行 `$tomcat_install/logs/jakarta_service_date.log` 日志文件中记录的 `service.bat` 文件时出现。 #### 解决方案 为了解决...

    fiddler-mac.zip

    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 ...

    Installing RAC on AIX

    本篇将基于提供的文档摘要,深入解析安装Oracle RAC on AIX的关键步骤与注意事项,为读者提供一份详尽的操作指南。 ### 安装准备阶段 #### 1. 下载并解压安装介质 首先,需要从Oracle官方网站的edelivery服务下载...

    Tomcat The Definitive Guide, 2nd Edition(PDF)

    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 ...

    Microsoft Windows 2000 Scripting Guide - Installing Software on a Remote Computer

    Microsoft Windows 2000 Scripting Guide - Installing Software on a Remote Computer

    Installing Your Driver on Windows Millennium

    Installing Your Driver on Windows Millennium INF File Guide

    linux环境Tomcat安装配置手册

    本手册旨在指导用户在 Linux 环境中安装和配置 Tomcat 服务器, step-by-stepguiding users through the process of installing and configuring Tomcat on a Linux environment. 知识点一:下载和安装 Tomcat 在...

    Installing MIUI on Meizu MX2

    在IT领域,将一款设备刷入不同的操作系统或定制ROM是一种常见的技术操作,它允许用户根据个人喜好和需求自定义手机的界面与功能。本篇内容将深入解析如何在魅族MX2上安装MIUI系统,这是一项对于Android发烧友而言极...

    \Installing RAC on AIX 001.pdf

    根据提供的文档信息,本文将详细解析安装 Oracle RAC (Real Application Clusters) 在 AIX 操作系统上的步骤、注意事项及关键技术点。 ### 安装前准备 #### 下载安装介质与补丁集 ... - 示例文件包括:`B24442-01_1...

    installing-icpc-osx:在 Mac OS X 上安装 icpc(Intel CC++ 编译器)并运行一个简单的 OpenMP 程序的步骤。 使用 OS X Yosemite 测试

    在 OS X Yosemite 上安装 Intel ICPC 以使用 OpenMP 下载适用于 C++ OS X 的英特尔:registered: Parallel Studio XE Composer 版。它对大学生免费。 我是学生,所以我申请了学生许可证。 我收到了一封包含序列号和...

    Installing Configuring Alfresco ECM 3.1

    - **Installing Alfresco on Mac (full installation)**:Mac 用户的完整安装指南,涵盖了从下载到配置的所有步骤。 - **Installing the Alfresco WAR on any platform**:介绍如何在任何平台上部署 Alfresco 的 WAR...

    installing samba on ubuntu

    面是我在Ubuntu6.06 LTS 下源码编译安装samba主要安装过程,本人第一次用Ubuntu,刚装上去时候,没有gcc编译环境。郁闷了半天。找出这一过程发了不少的时间。可能还有些不妥,不过我经过这样的安装达到了向windows共享...

    Installing Activ Test on Your PC

    ### 安装Activ Test软件至个人电脑的知识点详解 #### 一、背景介绍 随着信息技术的发展,越来越多的专业技能认证考试采用计算机化的方式进行。其中,ECDL(欧洲计算机驾驶执照)作为一项广泛认可的计算机操作技能...

    anaconda安装 - Installing Anaconda on Ubuntu

    如果你正在使用Python 2.7.x版本进行开发,则应下载对应版本的安装程序。 #### 四、下载Anaconda安装包 按照教程中的指示,我们可以从以下链接下载适用于Linux x86_64架构的Anaconda安装包: - 下载链接:...

    tomcat 环境配置及问题处理

    - `Installing the service ‘Tomcat6’……..` - `Using CATALINA_HOME: “D:\Program Files\Tomcat”` - `Using CATALINA_BASE: “D:\Program Files\Tomcat”` - `Using JAVA_HOME: “D:\Program Files\Java\...

Global site tag (gtag.js) - Google Analytics