In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces how to install and configure TOMCAT+JIVE. It is very detailed and has a certain reference value. Friends who are interested must finish it!
APACHE and JDK have been installed. Otherwise, install it. The native installation version is apache1.3,JDK 1.3.1 (you cannot use JDK1.4.0, because in the later installation of JIVE, you will encounter the problem of class declaration overlap when compiling a JAVA file. This is because both the java.sql package and the java.beans package of jdk1.4.0 contain the class Statement, while in jdk1.3.1, whether java.beans contains the Statement class, and the file imports the package by:
Import java.sql.*
Import java.beans.*;)
1. Download the TOMCAT installation package. The latest version is 4.0beta 7, which is installed with the official release version 3.2.1 (you can also use the latest release version 3.2.3) at the download address:
Http://java.apache.org/ .
2. Download the source code of MOD_JK. It is included in the file jakarta-tomcat-3.2.1-src.tar.gz and is located in the directory src/native/apache1.3 (if you use apache, you should use src/native/apache2). Download address is the same as above.
3. Unlock the downloaded TOMCAT distribution package to a directory, such as / usr, where there will be a
The jakarta-tomcat-3.2.1 directory, which is best renamed to a short name, such as tomcat.
4. Set the environment variable JAVA_HOME,PATH,CLASSPATH,TOMCAT_HOME in the system configuration file / etc/profile, where:
JAVA_HOME: the home directory for the JDK installation, which should be: / usr/java/jdk1.3.1_01 under the default installation of JDK1.3.1
PATH: includes the JAVA compiler and running program in front of the original PATH, in this case / usr/java/jdk1.3.1_01/bin.
CLASSPATH: contains the class library of JDK and the JDBC driver of MYSQL. In this case, the driver of MYSQL is copied to the driver directory of JDK, so the setting in this example is: / usr/java/jdk1.3.1_01/lib/tools.jar:/usr/java/jdk1.3.1_01/driver. For JDK1.3.1, you can not set tools.jar, but only need the path of the JDBC driver.
The home directory of the TOMCAT_HOME:TOMCAT, in this case / usr/tomcat.
5. If you have previously configured TOMCAT and now use MOD_JK instead of the original mod_jserv, you need to change from the original httpd.conf
Delete any ApJServMount instructions, and if they include tomcat-apache.conf or tomcat.conf, you also need to delete them.
6. Compile and download the MOD_JK source code to generate the required mod_ jk.so library.
The method under LINUX is:
Unpack the jakarta-tomcat-3.2.1-src.tar.gz and enter the unpacked
Jakarta-tomcat-3.2.1/src/native/apache1.3 directory, copy all the files in this directory to the jk above this directory
Directory, the command is cp. / *.. / jk/
Enter the jk directory: cd.. / jk
To compile and generate a library file, the command is:
Apxs-o mod_jk.so-I../jk-I/usr/local/jdk/include-I/usr/local/jdk/include/linux
-c * .c
When finished, generate the library file mod_jk.so in the jk directory.
7. Copy the generated library file mod_jk.so to / etc/httpd/modules (you can also follow the method of installing TOMCAT files, but I can't find the libexec directory, so I have to copy it to the module directory of apache)
8. Set TOMCAT to support a better Ajpv13 protocol.
Modify the TOMCAT_HOME/conf/server.xml file
In the following text
Add a similar text after it:
The previous text cannot be deleted because TOMCAT needs it when it is closed.
9. Edit the TOMCAT_HOME/conf/workers.properties file to fit the system environment:
The following three main changes are made
Workers.tomcat_home=/usr/tomcat
Workers.java_home=/usr/java/jdk1.3.1_01
Ps=/
(modify accordingly according to your own settings, the first is the home directory of TOMCAT, the second is the home directory of JAVA, and the third is the system path separator, WINDOW is, UNIX/LINUX is /)
Modify the configuration file of apache to use mod_jk.
Add the following at the end of the configuration file / etc/httpd/conf/httpd.conf of apache:
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
Section causes SP and servlet requests to be sent to the ajp13 protocol
DocumentRoot / webapps/test
ServerName cherami
SSLEngine On
JkMount / * .jsp ajp13
JkMount / servlet/* ajp13
You should now be able to start the TOMCAT server using / usr/tomcat/bin/startup.sh and type 127.0.0.1 TOMCAT 8080 in the browser to see the main interface of the server.
Installation of JIVE 2
1. Download jive_2_0_beta2.zip, the installation package of JIVE 2, and unpack it at http://www.jivesoftware.com/.
2. Create a directory for jive, such as / usr/tomcat/webapps/jive, and copy all the files under the application directory of the unpacked JIVE to this directory.
3. Edit the jive_init.properties file in the / usr/tomcat/webapps/jive/WEB-INF/classes directory and change it to the location of the JIVE home directory, in this case:
JiveHome=/usr/tomcat/webapps/jive/WEB-INF/jiveHome
4. Install the database required by JIVE.
Start the MYSQL database service program first (the system does not start by default. See Books about starting the MYSQL server. Generally, you can log in to the system as a mysql user, and then mysqld will be fine. It is best to modify the system service to start myslqd when the system starts. )
Use mysql:mysql-u root-p as root
After entering, use create database jive; to create the database jive used by jive.
Authorize the use of jive:grant all on jive.* to jive@ identified by "password". Exit mysql, enter the database directory under the unpacked JIVE directory, and use the
Cat Jive_mysql.sql | mysql-u root jive-p
Create the table of the jive database.
5. Modify the server.xml file in the conf directory under the home directory of TOMCAT: in
Or add the JIVE service directory after a similar section:
< /Context>6. Modify / usr/tomcat/webapps/jive/include/branding/style.jsp and / usr/tomcat/webapps/jive/admin/include/global.jsp by adding:
7. Restart LINUX to make all the changes take effect, and start TOMCAT:
/ usr/tomcat/bin/startup.sh
Start the httpd service (if it is started, you can skip it here):
Httpd
Launch the browser and start the configuration of JIVE in the address bar:
Localhost:8080/jive/admin
The first step should pass smoothly, the second step is to choose the default English, and the third step is to connect to the database.
Jdbc: org.gjt.mm.mysql.Driver
Server: jdbc:mysql://localhost/jive
Username:jive
Passwd:password
These are all the contents of the article "how to install and configure TOMCAT+JIVE". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.