Win2000 ADV Under the Under Integration Tomcat4.1.24 and Apache2.0.45 Server

zhaozj2021-02-16  59

Hey! I finally gave this integration, do this job than cracking JIVE3! I have been discusing for 2 days. It is really not a life, 555555555555, and even the entire integration process is written to everyone here, I hope to take some lessons. The Used Win2000 Adv Server, on the occasional book, has been stable, even if it doesn't matter to use the kitten Update system, after the SP3 is finished, I have added 30 holes and I really ignora. Microsoft. Dong Zhen is a system of gang leaders, do not say nonsense, talk about it. The latest JDK1.4.4.102 and apache 2.0.45 and tomcat 4.1.24 and mod_jk2 but the version of this mod_jk2 Dongdong! Even 3 different versions, at http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/ below to the nightly directory with the release directory, and there are mod_jk2.dll below but different It is a more suspicuous dissertate in the release directory. It is divided into V2.0.0, V2.0.1, V2.0.2 under Release. Even if the highest version is used, but other articles are used. V2.0.1 / bin / win32 / mod_jk2-2.0.43.dll and Nightly / Win32 / Mod_jk2.dll, the ie is V2.0.2-2.0.43.DLL, the file ratio Two a little bit of 148K, the upper two is 120K, even thinking about this file is the latest, and it is better than two big points, the efficiency and stability must be improved, even this. The following is a specific connection address: J2SDK-1_4_1_02-windows-i586.exe http://java.sun.com/j2se/1.4.1/index.html // ourselves, the address is dynamic JAKARTA-TOMCAT-4.1 . 24.EXE http://apache.linuxforum.net/dist/jakarta/tomcat-4/binaries/tomcat-4.1.24.exe apache_2.0.45-win32-x86-no_ssl.msi http: //apache.linuxForum. Net / dist / httpd / binaries / win32 / apache_2.0.45-win32-x86-no_ssl.msi mod_jk2-2.0.43.dll http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/Release/ V2.0.2 / bin / win32 / mod_jk2-2.0.43.DLL above these under installation, the general order is JDK, Apache, Tomcat, MOD_JK2, where mod_jk2 is a DLL file, put him Copy to Apache2 / Modules directory Use it, this Dongdong is used, ITSYH brother dresses, even if you don't know, you only know how to use him to integrate Apache and Tomcat is simple. As for the previous complex, I really don't understand, haha. . . .

That's first JDK! I don't want to write, this stuff is installed too much. I don't want to write the specific stuff. I just need to add the bin directory you install JDK to the system variable PATH, this is to use the bin directory East, there is a new ClassPath system variable and put jdk / lib / tools.jar to the two JAR packages under JDK / lib / dt.jar to include it. Here, I have to mention the JDBC driver of some databases we have to use in the future. Generally, I said that let everyone add the path of these packages in the classpath, and in many cases, you can't find him. Related JDBC drivers, and ClassPath's lookup is the order, just start from the first path, if you can't find the stuff you want to use, this is easy to have problems, and there is If you want to transplant, you can be too much trouble, you have to specify a lot, really can't stand, even summarize the previous experience, feel that put some driver or use the JAR package to JDK below you. More, you should put this file no matter what Oracle, SQLServer, mysql, etc. is placed under JDK / JRE / LIB / EXT, and you don't have to add any classpath, even if you use it. As for Apache! I don't say much, I only write the question you have to pay attention to: Apache2xx has a small problem. After the default installation is successful, there is no index.html file in the HTDOCS directory under Apache2 home, we must put this directory Index.html.en is renamed to index.html. I even ate this loss, I installed N times, I figured out that there is no index.html or index.htm in the htdocs directory. Otherwise, how long does it always have to find a page? There is also a resolution of not automatically displaying Chinese: Edit the configuration file httpd.conf in the Apache2 / Conf directory. Use Notepad to open it and find "AddDefaultCharset ISO-8859-1", comment out "AddDefaultCharset ISO-8859-1", ie before "#" characters before "" ". Then add the following three lines below "#adddefaultcharset ISO-8859-1": adddefaultcharset GB2312 DefaultLanguage GB2312 AddLanguage ZH-CN .cn 嘿嘿. . . Even the top is basically plagiarism. Tomcat is installed: It should be noted that two environment variables are established in the system variable, one is a java_home variable, the value of the variable is the directory where the JDK is installed, the other is Tomcat_Home variable, the value of the variable is just the directory you install Tomcat. . When you have finished these, you can test apache with tomcat. After you start apache and Tomcat, enter: http:// localhost / or http: http: // localhost / or http: // localhost: 8080 / If there is a normal welcome page Your Apache is successful with Tomcat, which is the problem of integration. The system starts the whole: First change your MOD_JK2-2.0.43.dll into mod_jk2.dll, it is convenient! You don't have to make you.

Next, put the mod_jk2.dll copy to the Apache2 / Modules directory, you should only have this DLL! Ha ha. . . If you have any other DLL, there is a problem. The following question is to modify the configuration file, we want to modify the configuration file is an apache2 / conf / httpd.conf this file, you open him with the text editor, finally add the following: loadingModule JK2_Module Modules / Mod_jk2.dll // Your local address serveradmin webmaster@dummy-host.example.com // The system administrator's mail, you can not change it. DocumentRoot "C: / Tomcat 4.1 / WebApps" // This is your Tomcat's WebApps directory, which is where you have to put it. If you don't want to put it here, you will change it, even there is no opinion. ServerName Dummy-Host.example.com // The name of the server is changed to change. DirectoryIndex index.htm index.html index.jsp // Here is the file of your default page. ERRORLOG logs / dummy-host.example.com-error_log // Error log file Customlog logs / dummy-host.example.com-access_log common // File After this file is complete! Just follow the newly created file named workers2.properties, this file is placed under apache2 / confation, and httpd.conf is a group. The content of this file is as follows: [SHM] file = $ {serverroot} /logs/shm.file size = 1048576 # EXAMPLE SOCKET CHANNEL, OVERRIDE port and host. [Channel. Socket: localhost: 8009] Port = 8009 Host = 127.0. 0.1 # define the worker [ajp13: localhost: 8019] channel: localhost: 8009 # uri mapping [uri: / *] worker = ajp13: localhost: 8009 是 人, everyone is going, I don't quite understand that the brothers and sisters will bear. Test: first start the Apache server and start the Tomcat server, don't you do it? If you want to try it, it is not objected. If the Apache or Tomcat server is not successfully started, you will show that you are too bad, or you don't do anything to write, or you are too lucky, huh, huh. . . Don't doll why? Ask yourself! Enter "http: // localhost: 8080 /" in IE. After the link, you should see the Tomcat welcome page, indicating that Tomcat starts successfully. Enter "http: // localhost /" in IE.

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

New Post(0)