Resin installation in Windows

Source: Internet
Author: User

Jsp is a new web development tool developed by sun Based on servlet. in foreign countries, ejb + jsp/servlet + Application Server + database has become a popular architecture of e-commerce sites. If you use the jsp platform as the support for internet commercial sites, the speed, price, and stability should be taken into account, and the resin is excellent. Resin has been installed in linux in many articles. This article describes how to install resin in windows. I believe I have read this article, you can easily build a powerful web site.

The first requirement is that jdk has been installed properly. Here I will not go over jdk installation. There are many articles in this regard.

Resin achieves the purpose of jsp interpreter. There are two methods: integration with iis and httpd as standalone. The specific method depends on your personal preferences and actual conditions. I use the first one.

First, explain the standalone method.

This method almost does not need to be configured. After the resin is decompressed, run bin \ httpd.exe directly. When httpd.exe is run, two windows are generated, one is similar to the command line window (but only the output is allowed, and the other is the gui control window, these two windows cannot be closed using the direct x method. This will lead to a system error in resin. The correct method is to use the quit button on the gui.

Wait until the command line window appears:

Resin 2.1.6 -- mon oct 2 17:34:31 pdt 2000
Listening to *: 8080

In this case, the start is successful, and the following 8080 is the port that resin httpd is listening to now. This port can be modified. Modify the conf \ resin. conf file as follows:

Section: xml:

<! -- The http port -->
<Httpd-port> 8080

Change 8080 to the port you want. However, be sure not to repeat the occupied port; otherwise, it cannot be started. At this time, resin httpd is already accepted for access and has basic functions of iis. By default, the http root directory is the doc directory of the resin installation directory, but can also be modified.

Conf \ resin. conf: xml:
<Http-server>
<App-dir> doc </app-dir>
Here is the default situation. You can also write an absolute path to define other directories. Enter http: // localhost: 8080!
Let's talk about how to integrate with iis. In this mode, resin runs as a plug-in for iis only. jsp ,. files such as xtp are parsed, just like asp. dll is responsible for parsing. asp file, perl. dll is responsible for parsing. same as pl files. This configuration is complex and may cause problems, but it brings great convenience.

Think twice.

Next, I want to talk about the manual installation method. When I manually install the setup.exe, I often have problems and it is not reliable.

1. Install jdk and resin (these are all nonsense)

2. Run the bin \ setup.exe file.

After filling in the resin home and iis/pws directories, click OK to stop iis/copy iis_run.dll/start iis, there is an iis_run.dll file under the inetpub \ s cripts directory of your iis. At the same time, an srun is added to the filter configured in iis.

3. At this time, resin cannot be used. You also need to install a service to execute the srun.exe-install command under the bin \ directory. This will install a resin service for the system.

4. Configure the resin. conf file

Edit the following section:

<Http-server>
<App-dir> doc </app-dir>

Modify the doc to the directory where your wwwroot is located. This is the time!

5. restart the system

This step is required. If you do not restart, the resin service cannot run correctly.

6. View http: // localhost/caucho-status!

In this case, it will come to an end. In the future, iis and resin will perform their respective duties, iis will be responsible for parsing html and asp files, and resin will be responsible for parsing jsp files. In the end, the resin function is very powerful. virtual directories, virtual hosts, and Server Load balancer can all be implemented.

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.