Home Database Mysql Tutorial tomcat 3.1在RedHat下的安装_MySQL

tomcat 3.1在RedHat下的安装_MySQL

Jun 01, 2016 pm 02:08 PM
apache class tomcat Install server

TomcatRedhat

Jsp是sun在servlet基础上发展而来的一种新的web开发工具,在国外Ejb+jsp/servlet+应用服务器+数 据库已经已经成为电子商务站点的流行架构。tomcat3.1实现了最新的servlet2.2和jsp1.1标准,sun也 是推荐使用tomcat,本文介绍tomcat3.1在RedHat下的安装。

  在java.sun.com取得jdk1_2_2-linux-i386.tar.gz
  在http://jakarta.apache.org/builds/tomcat/release/v3.1/bin/取得jakarta-tomcat.tar.gz,
  在http://jakarta.apache.org/builds/tomcat/release/v3.1/bin/linux/i386/取得mod_jserv.so

1、安装jdk1.2.2 #cp jdk1_2_2-linux-i386.tar.gz /usr/local #tar xvzf jdk1_2_2-linux-i386.tar.gz #ln -s jdk1.2.2 jdk #ln -s jdk/jre jre 设置$JAVA_HOME,$CLASSPATH #vi /etc/profile 加入: JAVA_HOME=/usr/local/jdk export JAVA_HOME CLASSPATH=/usr/local/jdk/lib:/usr/local/jre/lib export CLASSPATH PATH=$PAHT:/usr/local/jdk/bin:/usr/local/jre/bin

2、安装tomcat #cp jakarta-tomcat.tar.gz /usr/local #tar xvzf jakarta-tomcat.tar.gz 退出重新登入 #cd /usr/local/jakarta-tomcat/bin 运行tomcat服务器 #./startup.sh start(用./shutdown.sh stop结束tomcat服务器) #lynx http://localhost:8080/ 看见了jsp/servlet的东西,并且能运行它的例子程序,那么你的tomcat服务器就安装成功了

3、和apache连接 tomcat本身其实就是一个web服务器,我们可以把他和apache等其他web服务器连接起来,这两个服务器 可以不在同一台机器上。底下的操作为在同一台机器上的情况,如果想把他们分开在两台计算机上,请 修改/usr/loca/jakarta-tomcat/conf/tomcat.conf #cp mod_jserv.so /your/apache/libexec #cp /usr/local/jakarta-tomcat/conf/tomcat.conf /your/apache/conf/path #vi /your/apache/conf/path/httpd.conf 加入 Include /your/apache/conf/path/httpd/tomcat.conf

4、测试 重新启动你的apache, 然后运行tomcat服务器 #lynx http://localhost/examples/ 如果你看见了jsp、servlet目录,你的apche与tomcat已经连接成功了.

5、一些说明: 如果你的jsp/servlet运行不了或者有错误,一般是你的CLASSPATH设置错误 如果你的apache是自己编译的,编译apache时请把--enable-module=so打开

关于tomcat的信息请到http://jakarta.apache.org
其他jsp方面的信息可以到http://java.sun.com/jsp

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to run the h5 project How to run the h5 project Apr 06, 2025 pm 12:21 PM

Running the H5 project requires the following steps: installing necessary tools such as web server, Node.js, development tools, etc. Build a development environment, create project folders, initialize projects, and write code. Start the development server and run the command using the command line. Preview the project in your browser and enter the development server URL. Publish projects, optimize code, deploy projects, and set up web server configuration.

How to efficiently integrate Node.js or Python services under LAMP architecture? How to efficiently integrate Node.js or Python services under LAMP architecture? Apr 01, 2025 pm 02:48 PM

Many website developers face the problem of integrating Node.js or Python services under the LAMP architecture: the existing LAMP (Linux Apache MySQL PHP) architecture website needs...

How to export pdf with xml How to export pdf with xml Apr 03, 2025 am 06:45 AM

There are two ways to export XML to PDF: using XSLT and using XML data binding libraries. XSLT: Create an XSLT stylesheet, specify the PDF format to convert XML data using the XSLT processor. XML Data binding library: Import XML Data binding library Create PDF Document object loading XML data export PDF files. Which method is better for PDF files depends on the requirements. XSLT provides flexibility, while the data binding library is simple to implement; for simple conversions, the data binding library is better, and for complex conversions, XSLT is more suitable.

How is Debian Hadoop compatibility How is Debian Hadoop compatibility Apr 02, 2025 am 08:42 AM

DebianLinux is known for its stability and security and is widely used in server, development and desktop environments. While there is currently a lack of official instructions on direct compatibility with Debian and Hadoop, this article will guide you on how to deploy Hadoop on your Debian system. Debian system requirements: Before starting Hadoop configuration, please make sure that your Debian system meets the minimum operating requirements of Hadoop, which includes installing the necessary Java Runtime Environment (JRE) and Hadoop packages. Hadoop deployment steps: Download and unzip Hadoop: Download the Hadoop version you need from the official ApacheHadoop website and solve it

Apache Troubleshooting: Diagnosing & Resolving Common Errors Apache Troubleshooting: Diagnosing & Resolving Common Errors Apr 03, 2025 am 12:07 AM

Apache errors can be diagnosed and resolved by viewing log files. 1) View the error.log file, 2) Use the grep command to filter errors in specific domain names, 3) Clean the log files regularly and optimize the configuration, 4) Use monitoring tools to monitor and alert in real time. Through these steps, Apache errors can be effectively diagnosed and resolved.

Is Debian Strings compatible with multiple browsers Is Debian Strings compatible with multiple browsers Apr 02, 2025 am 08:30 AM

"DebianStrings" is not a standard term, and its specific meaning is still unclear. This article cannot directly comment on its browser compatibility. However, if "DebianStrings" refers to a web application running on a Debian system, its browser compatibility depends on the technical architecture of the application itself. Most modern web applications are committed to cross-browser compatibility. This relies on following web standards and using well-compatible front-end technologies (such as HTML, CSS, JavaScript) and back-end technologies (such as PHP, Python, Node.js, etc.). To ensure that the application is compatible with multiple browsers, developers often need to conduct cross-browser testing and use responsiveness

What are the key information in the Debian logs that cannot be ignored What are the key information in the Debian logs that cannot be ignored Apr 02, 2025 am 08:12 AM

The log files of the Debian system are valuable resources for system administrators and developers to diagnose problems and monitor the operating status of the system. This article will focus on some key log information that cannot be ignored. Core system logs (usually located in /var/log/syslog or /var/log/messages) These logs record the core activities of the system, including: system startup and shutdown events: log kernel version, hardware detection results, etc., to help track startup failures or shutdown exceptions. Hardware failure alerts: such as disk errors, memory problems, etc., to promptly detect potential hardware problems. Service status changes: Record the service start, stop and restart events to facilitate monitoring of the service's health. User login/logout history:

Difficulty in selecting domestic CPU servers: How is the compatibility between Tomcat and Java programs under the Haiguang x86 and Feiteng ARM architecture? Difficulty in selecting domestic CPU servers: How is the compatibility between Tomcat and Java programs under the Haiguang x86 and Feiteng ARM architecture? Apr 01, 2025 pm 01:15 PM

In the wave of domestic CPUs, choosing the right server hardware has become a key consideration for many projects. This article will discuss the deployment of Linux systems on Haiguang CPU and Feixiong...

See all articles