Windows+apache+resin Configuration _java Programming

Source: Internet
Author: User
Article Source: Internet Author: skywoo/csdn

windows2000+apache2.0.48+resin2.1.6
1. Installation jdk1.4
  
The latest version of JDK is jdk1.4.2 and can be downloaded to http://java.sun.com. Add windows2000 environment variables after installation java_home: Right click on "My Computer", select Properties à advanced à environment variable à system variable à new, variable name java_home, variable value for JDK installation directory.
  
2. Installation resin2.1.6
  
Search resin on the http://e.pku.edu.cn, you can find resin2.1.6 compression pack or a later version of the resin, for this tutorial as long as download resin2.1.6 (note To download the version under Windows, typically zip or rar compressed package).
  
Unzip the compressed package to a folder where the resin2.1.6 is the resin installation directory and, of course, the resin2.1.6 folder can be placed elsewhere as the resin installation directory. There are three files Httpd.exe, Resin.dll, setup.exe under the installation directory \ Bin. You can register resin as a Windows service with the install directory \httpd.exe–install command.
  
Run the installation directory \httpd.exe or start the resinwebserver in the Windows2000 service after registering the service. In IE browser's address bar, typing: http://localhost:8080/index.xtp, carriage return will appear resin default home page (in fact, resin use document), which means that resin has been installed successfully. Select Referenceguide, click Windowsapache under Installation:gettingstarted, and you can see this is the Apache+resin tutorial under Windows, If you can read the tutorial again in English, you will use it later.
  
3, install Apache2.0.48.
  
Download Apache_2.0.48-win32-x86-no_ from http://www.apache.org Ssl.msi, you can double-click to run the installation under Windows2000, and if you Win98, you need to install an upgrade software to perform the. msi installation file.

The installation process is simple, as long as you follow the prompts step-by-step, it is recommended to choose to install Apache as a Windows service, or you can use the install directory \bin\apache.exe–kinstall command to register Apache as a Windows service after the installation is complete. You can test after the installation is complete.
  
Run the Apache installation directory \apache\bin\apache.exe or start Apache2 in the Windows service after registering the service. Enter in IE browser: http://localhost, you will see the page that prompts Apache to install successfully.
  
Now, based on the tutorial prompts in the previous step, open the Apache installation directory \apache\conf\httpd.conf with a text editor, and add something similar to the apache+resin 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>
  
Don't forget, if you're using Apache2, you have to comment out the third line, #号为注释符, search Mod_caucho.dll and resin.conf in your resin installation directory and replace the two paths above with their paths.
  
4, the last of the Apache and resin, note to start Apache first. Enter HTTP://LOCALHOST/INDEX.XTP in IE, you will find that the displayed page is the default home page of resin, but the picture cannot be displayed because of the wrong path.
  
5, so far, windows2000+apache+resin configuration completed. In fact, as long as the above mentioned in accordance with the resin instructions to complete the configuration.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.