Three steps to install Tomcat 4.0.1 + jdk1.4 + linux + mysql

xiaoxiao2021-03-06  22

I have successfully installed Tomcat on Read Hat Linux6.2 Linux7.0 Linux7.1 Linux7.2, only three steps:

first step:

Download Preparation Equity: 1.jakarta-Tomcat-4.0.1.tar.gz (Tomcat 4.0.1) http://jakarta.apache.org/tomcat/index.html 2.j2sdk-1_4_0-linux-i386. BIN (JDK1.4) http://java.4/download.html3. mm.mysql-2.0.4-bin.jar (Support Database) http://www.mysql.com/downloads /API-jdbc.html tar zxf jakarta-tomcat-4.0.1.tar.gz decompressed Tomcat to / usr / local to perform J2SDK-1_4_0-beta2-linux-i386.bin decompressed JDK1.4 to / usr / local copy mm .mysql-2.0.4-bin.jar to jakarta-tomcat-4.0.1 / lib directory

Step 2: For easy operation: ln -s jakarta-tomcat-4.0.1 Tomcatln -s J2SDK1.4.0 JDK modified Tomcat / bin / startup.sh as: export java_home = / usr / local / jdkexport classpath = $ java_home / lib : $ JAVA_HOME / JRE / LIB: .Export Path = $ PATH: $ java_home / bin: $ java_home / jre / bin / usr / local / tomcat / bin / catalina.sh Start Step 3: Start Tomcat / Bin / Startup. SH Small: 1. Using PS -AX | GREP Tomcat You can query the presentation of the Tomcat program in memory use http: // Your server domain name or IP address or localhost: 8080 / Access 2. If required system boot automatic Tomcat in / etc Add: /usr/local/tomcat/bin/startup.sh3. For Linux7.1 system, Tomcat seems to be started normally, you need to install: Compat-libstdc - 6.2-2.9.0.14. I386.9.0.14.i386.0.14.306.2.9.0.14.i386.rpm4. If you want to access your own JSP program with http://www.xxx.com:8080/Myweb, the following steps: (1). Establish a directory MYWEB such as / home / bqlr / myweb (2). Create a web-inf and web-inf / classes directory (3) under MyWeb. Modify Server.xml in Tomcat's confed:

(4) In Tomcat's WebApps directory, establish a directory connection MyWebln -S / Home / BQLR / MYWEB / USR / local / Tomcat / WebAPPS / MyWeb (5) Restart Tomcat. Class file is placed in / home / BQLR / MyWeb / WEB-INF / CLASSES directory, JSP file is placed under / home / bqlr / myweb (6) mysql installation is simple, to www.mysql.com download the latest version, recommend RPM package. Direct RPM -i installation package Can be further integrated with Apache, refer to my other article.

转载请注明原文地址:https://www.9cbs.com/read-80269.html

New Post(0)