RedHat8.0 + JDK1.4.2

zhaozj2021-02-16  115

Environment: Redhat 8.0JDK Installation Path: / USR / Java / JDK Tomcat Installation Path: / USR / Local / Tomcat /

A total of the following steps: First, install the configuration JDK II, install the configuration Tomcat three, install the postgreSQL four, Tomcat test 5, connect the database

The software required: J2SDK-1_4_2-Linux-i586-rpm.bin download address: http://java.sun.com/j2se/1.4.2/download.html jakarta-tomcat-5.1.20.tar.gz http : //www.apache.orgpostgreSQL-7.4.1-1pgdg.i386.rpm http://www.postgreSQL.orgpostgreSQL-JDBC-7.4.1-1pgdg.i386.rpm postgreSQL-Server-7.4.1-1pgdg.i386 . rpm postgreSQL-libs-7.4.1-1pgdg.i386.rpm These software all in / Download a backup #MKDIR / DOWNLOAD

1 Install the configuration JDK to download the RPM package, actually a .bin file #chmod u x j2sdk-1_4_2-linux-i586-rpm.bin // set package properties #. / J2sdk-1_4_2-linux-i586-rpm. BIN // Look at the protocol and solve the RPM package #RPM -IVH J2SDK-1_4_2-Linux-i586-rpm // Install #CD / USR / JAVA / / / Enter the installed directory #LN -s J2SDK1.4.2 JDK / / Do a JDK directory connection to J2SDK.1.4.2

Set an environment variable: Write to / etc / profile. That will load the JDK when the system starts. #vi / profileexport java_home = "/ usr / java / jdk" export path = "$ path: $ java_home / bin" export classpath = "$ java_home / lib"

2 Configure Tomcat because I downloaded a Binary version, so I don't need to compile again. #cp /download/jakarta-tomcat-5.1.20.tar.gz / usr / local // Tomcat Direct copy expiration / usr / local # tar zxvf jakarta-tomcat-5.1.20.tar.gz // Unpack # RM-F jakarta-tomcat-5.1.20.tar.gz // Delete file #LN -s jakarta-tomcat-5.1.20 Tomcat5 // Make a Tomcat directory Connection to Jakarta-Tomcat-5.1.20 Add Environment Variable: #vi / profileexport catalina_home = "/ usr / local / tomcat5"

You can test whether Tomcat will start normally: # cd / usr / local / tomcat5 # bin / startup.sh You will see these state: use Catalina_Base: / usr / local / tomcat using catalina_home: / usr / local / tomcat using Catalina_TMPDIR: / usr / local / tomcat / temp using java_home: / usr / java / jdk then open the browser, enter http: // localhost: 8080, if you can see a metamorphosis little cat looks at you, then Congratulations, Tomcat has become.

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

New Post(0)