Tomcat + Jive installation configuration (support Chinese)

zhaozj2021-02-08  217

Tomcat Jive installation configuration

This article is: Linux Redhat 7.1 JDK1.3.1 mysql 3.23.36 Tomcat 3.2.1 Jive 2

Author: cheramiemail: cherami@163.net

Tomcat installation steps:

0, Apache and JDK have been installed. Otherwise the installation is installed. The machine installed version is apache1.3, JDK is 1.3.1 (cannot use JDK1.4.0, because in the back Jive installation, it will encounter the problem of the classes to declare the problem, due to JDK1.4.0 The java.sql package and java.beans package contain class statement, and in JDK1.3.1, the java.beans package does not include the Statement class, and the file import package is: import java.sql. *; import java.beans *;)

1. Download the Tomcat installation package, the latest version is 4.0 beta 7, which is used for formal release 3.2.1 (you can also use 3.2.3 latest release), download address is: http: //java.apache. Org.

2, download the source code of Mod_jk. Included in file jakarta-tomcat-3.2.1-src.tar.gz, after decompression is located in src / native / apache1.3 (if the Apache used should use the src / native / apache2) directory. The download address is the same.

3, open the downloaded Tomcat release to a directory, such as / usr, at which time there is a Jakarta-Tomcat-3.2.1 directory in this directory, it is best to change the name of a short image, for example Tomcat.

4, set the environment variable Java_Home, Path, ClassPath, Tomcat_Home, where: java_home: The main directory installed in JDK1.3.1 should be: / usr / java / JDK1.3.1_01path: In front of the original Path, the Java compiler and running program are included. In this example /usr/java/jdk1.3.1_01/bin.classpath: contains JDK class libraries and MySQL JDBC drivers, this example Copy mysql's driver to the jdk driver directory, so the settings of this example are: /usr/java/jdk1.3.1_01/lib/tools.jar: /usr/java/jdk1.3.1_01/driver, for JDK1 . 3.1 can also be set without setting Tools.jar, and only the JDBC drive path is required. Tomcat_Home: The main directory of Tomcat, this example is / usr / tomcat.

5. If you have previously configured Tomcat, it is now turned to use MOD_JK instead of the original mod_jserv, you need to remove any APJServmount instructions from the original httpd.conf, if Tomcat-apache.conf or tomcat.conf, you need to delete them.

6. Compile the downloaded mod_jk land source code to generate the desired mod_jk.so library. The method under Linux is: Unpacking Jakarta-Tomcat-3.2.1-src.tar.gz, enters the unproved Jakarta-Tomcat-3.2.1 / src / native / apache1.3 directory, put this directory All files are copied to the JK directory of the upper layer of this directory, the command is cp. /* ../jk/ Enter the JK directory: CD ../jk compile generation library file, command is: apxs -o mod_jk.so -i ../ JK -I / USR / LOCAL / JDK / INCLUDE -I / USR / local / jdk / include / linux-c *. generates library file mod_jk.so under the jk directory. 7, copy generated library file mod_jk.so to / etc / httpd / modules (or possibly followed by Tomcat installation file, but I didn't find the Libexec directory, I have to copy it to Apache's module directory)

8, set Tomcat to support better AJPV13 protocols. Modify Tomcat_Home / conf / server.xml file in the following text

Add a similar text later:

Can't delete the text, because Tomcat needs it when it is closed.

9, edit Tomcat_Home / conf / worker.properties file to comply with the system: mainly modify the following three workers.tomcat_home = / usr / tomcatworkers.java_home = / usr / java / jdk1.3.1_01ps = / (according to your own settings Corresponding modification, the first one is the main directory of Tomcat, the second is the main directory of Java, the third is the system path separator, WINDOW is /, UNIX / Linux /)

10. Modify the Apache configuration file to use MOD_JK. Add:

LoadModule JK_Module Modules / MOD_JK.SO

AddModule MOD_JK.C

JkWorkersFile /usR / Tomcat/conf/Workers.properties

Jklogfile /var/log/mod_jk.log

Jkloglevel Warn

INCLUDE /USR / TOMCAT/conf/mod_jk.conf-auto Modify to make SP and Servlet requests to AJP13 protocol

Documentroot / WebApps / Test

ServerName Cherami

SSLENGINE ON

JKMount /*.jsp Ajp13

JKMOUNT / Servlet / * ajp13

You should now start the Tomcat server by using /usr/tomcat/bin/startup.sh, enter 127.0.0.1:8080 in the browser to see the main interface of Tomcat.

JIVE 2 installation

1. Download the JIVE 2 installation package JIVE_2_0_BETA2.ZIP, download after downloading, download address is http://www.jivesoftware.com

2. Create a directory for Jive, such as / usr / tomcat / webapps / jive, copy all files in the Application Directory after unpacking to this directory.

3, edit the jive_init.properties file under the / usr / tomcat / webapps / jive / web-inf / class directory, change it to the location of the JIVE home, this example is: jivehome = / usr / tomcat / webapps / jive / Web-INF / JIVEHOME

4, install the database required for JIVE. Start the MySQL database service (the system does not have a default start to see the book to launch the MySQL server. Generally, you can log in to the system with a MySQL user, then MySQLD is ok. It is best to modify the system service, start the system service, start MYSLQD when the system is started. ) Use the use of create database jive after use with root, and create a database JIVE used by JIVE. Authorization uses JIVE: GRANT All on Jive. * To jive @ Identified by "password". Exit MySQL, enter the Database directory under the unproved jive directory, create a table for the Jive database using CAT JIVE_MYSQL.SQL | MySQL -U Root Jive -p.

5. Modify the server.xml file under the CONF directory under Tomcat:

Or the similar part adds a JIVE service directory:

6, modification /usr/tomcat/webapps/jive/include/branding/style.jsp and /usr/tomcat/webapps/jive/admin/include/global.jsp, in front: <% @ page contenttype = "text / html; charset = 8859_1 "%>

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

New Post(0)