Source: Internet Author: skywoo/CSDN
Windows2000 + Apache2.0.48 + resin2.1.6
1. Install jdk1.4
Jdk's latest version is jdk1.4.2, which can be downloaded on the http://java.sun.com. After installation, add the windows2000 environment variable JAVA_HOME. Right-click "my computer" and choose "property"> "advanced"> "environment variable"> "system variable"> "new". The variable name is JAVA_HOME, and the variable value is the JDK installation directory.
2. Install resin2.1.6
Search resin on the http://e.pku.edu.cn, you can find the resin2.1.6 compressed package or later version of resin, for this tutorial as long as you download resin2.1.6 (pay attention to download the version of windows, generally, it is a zip or rar compressed package ).
Decompress the compressed package to a folder. The resin2.1.6 in this folder is the resin installation directory. Of course, you can also put the resin2.1.6 folder elsewhere as the resin installation directory. There are three httpd.exe‑resin.dll‑setup.exe files in the installation directory \ bin. You can use the installation directory \ httpd.exe-install to register resin as a windows service.
Run the installation directory \ httpd.exe or start resinwebserver in windows2000 after registering the service. In the address bar of IE browser, enter: http: // localhost: 8080/index. xtp. Press enter to display the default homepage of resin (which is actually the reference of resin). This indicates that resin has been installed successfully. Select ReferenceGuide and click WindowsApache under Installation: GettingStarted. You can see that this is the tutorial of Apache + resin in windows. If you can also read this tutorial in English, it will be used later.
3. Install Apache2.0.48.
Download the http://www.apache.org from the apache_2.0.48-win32-x86-no_ssl.msi, in windows2000 you can directly double-click to run the installation, if in Win98, you also need to install an upgrade software to execute the. msi Installation File.
The installation process is simple. You only need to follow the prompts to install Apache as a windows service, you can also use the \ bin \ apache.exe-kinstall command to register apache as a windows service after the installation is complete. After installation, you can perform a test.
Run the apache installation directory \ Apache \ bin \ Apache.exe or start Apache2 in windows after registering the service. Enter http: // localhost In the IE browser, and you will see the prompt that Apache is successfully installed.
Now, follow the instructions in the Apache + resin tutorial in the previous step to open the apache installation directory \ Apache \ conf \ httpd. conf in a text editor. Add the following content at the end of the file:
LoadModulecaucho_moduleD: \ career \ resin-2.1.6 \ libexec \ apache-2.0 \ mod_caucho.dll
# Note, AddModulenotneededforApache2.0
# AddModulemod_caucho.c
<IfModulemod_caucho.c>
CauchoConfigFileD: \ career \ resin-2.1.6 \ conf \ resin. conf
<Location/caucho-status>
SetHandlercaucho-status
</Location>
</IfModule>
Do not forget that if you are using Apache2, you must comment out the third line, # Is the annotator, search mod_caucho.dll and resin in your resin installation directory. conf replaces the preceding two paths with their paths.
4. Restart Apache and resin. Note that Apache should be started first. Enter http: // localhost/index. xtp in ie, then you will find that the page displayed is the default homepage of resin, but the picture cannot be displayed due to incorrect path.
5. So far, windows2000 + Apache + resin has been configured. In fact, the configuration can be completed as long as the resin instructions are mentioned above.