没有合适的资源?快使用搜索试试~ 我知道了~
Install Tomcat on Mac Machine
需积分: 9 7 下载量 6 浏览量
2011-07-29
01:32:15
上传
评论
收藏 661KB PDF 举报
温馨提示
试读
13页
Tomcat, Mac, Mod_JK,Database Access OS X developer tools must be installed to compile the MOD_JK connector, Native Library, or the JSVC daem.
资源推荐
资源详情
资源评论
Installing Apache Tomcat 6 on
January 19, 2011
Contents
Introduction
Name Soup
Installing Apache Tomcat 6
Securing Tomcat
Compiling and Installing JSVC Daemon
Compiling and Installing Apache HTTP Mod_JK Connector
Compiling and Installing Tomcat Native Library
Configuring Database Access
Troubleshooting
User Comments
Links
Feedback
Introduction
Installing Apache Tomcat 6 on Mac OS X is primarily a matter of downloading the appropriate
packages and then following the UNIX installation instructions included with the package. However,
OS X does have some peculiarities that make installation somewhat different than on your average
UNIX box. I know there are individuals using these instructions to get up and running on OS X 10.4
Tiger, but I don't have the time to verify that everything works in that particular environment.
The OS X developer tools must be installed to compile the MOD_JK connector, Native Library, or
the JSVC daemon. The developer tools can be found on the OS X installation DVD or online. The
XCode command line development tools must be installed along with the graphical tools. Users of
Java 6 for Mac OS X 10.6 Update 3 or above must also install the Java Developer Package to
compile Java Native Interface (JNI) applications. See the Java 6 Update 3
release notes.
This document tends to be geared more toward setting up Tomcat in a development environment
than a production environment. I have designed it to get you up and running as quickly as possible.
Some tuning will probably have to be done if you are planning on running Tomcat in a production
environment. For security reasons, you will probably also want to use the _appserver id that has
already been created to run Tomcat instead of your admin id.
In this document, the environment variable $CATALINA_HOME refers to the directory where you
installed the Tomcat binaries and $JAVA_HOME refers to the directory of the JAVA runtime
environment. At the time of this writing, Tomcat 6.0.30 is the latest Tomcat 6 release and requires
at least Java 2 Standard Edition 5 (J2SE 5).
This document assumes that you are installing on the client version of OS X 10.5.8 Leopard or OS
X 10.6 Snow Leopard with the latest security upgrades and JAVA 5 or JAVA 6 Framework. It also
assumes you are logged in as an administrator and running the bash shell.
I have tried to make this document as concise and direct to the point as possible. It is helpful to
have some knowledge of the basic
UNIX commands and permissions, the GNU build system, and
the infamous
httpd configuration file (httpd.conf).
Installing Apache Tomcat 6 on Mac OS X 10.5 Leopard or Mac OS X 10.... http://www.malisphoto.com/tips/tomcatonosx.html
1 of 13 7/1/2011 5:06 P
M
Name Soup
JAVA has many names that as far as Java on OS X is concerned, are effectively the same. OS X
comes with a complete JAVA environment for both program execution and program development.
This document uses these names interchangeably.
JAVA Developer's Kit 1.5 - JDK 1.5
JAVA 2 Standard Edition 5 - J2SE 5.0
JAVA 2 Runtime Environment - JRE 5.0
JAVA 2 version 5 - Java 1.5
JAVA 2 Software Development Kit - JAVA SDK
JAVA Virtual Machine - JVM
Install Apache Tomcat 6
Set the JAVA_HOME environment variable
On OS X, the JAVA_HOME environment variable must be set to /Library/Java/Home directory,
which in turn is a symbolic link that points to the current version of Java SDK you are running.
You don't have to set JAVA_HOME if you are just running Tomcat 6 and not compiling anything. It is
also not absolutely necessary to set CATALINA_HOME. It is automatically set in the startup scripts.
CATALINA_HOME is set here, because it is referenced throughout this document.
Execute the following commands in Terminal:
Installing Apache Tomcat 6 on Mac OS X 10.5 Leopard or Mac OS X 10.... http://www.malisphoto.com/tips/tomcatonosx.html
2 of 13 7/1/2011 5:06 P
M
Download and install the Tomcat binaries
Download Tomcat 6 Binary Distribution Core (tar.gz) and Deployer (tar.gz) from the Apache
Tomcat 6 Downloads Page.
Create the Tomcat folder in an appropriate directory - /Library or /usr/local is recommended, but for
development convenience Tomcat can be also installed in your home directory. Keep in mind that
these instructions are designed for the installation of Tomcat in /Library. If another directory is used,
you will have to assign appropriate permissions to that directory for these installation instructions to
work.
Also, be aware that when you download files with the Safari browser, it may try to unpack the
archive, leaving you with a file that does not need to be decompressed. So you only need to do a
tar -xvf instead of tar -xvzf to unpack the archive.
Execute the following commands in Terminal:
Installing Apache Tomcat 6 on Mac OS X 10.5 Leopard or Mac OS X 10.... http://www.malisphoto.com/tips/tomcatonosx.html
3 of 13 7/1/2011 5:06 P
M
剩余12页未读,继续阅读
资源评论
fredhuc
- 粉丝: 0
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功