RESIN installation

zhaozj2021-02-16  53

JSP is a new web development tool that Sun develops on SERVLET, and has become an popular architecture for e-commerce sites in foreign EJB JSP / Servlet Application Server Database. If you choose a JSP platform as an Internet business site support, so speed, price, and stability are to be considered, as these RESINs are very excellent. There is already a lot of articles in Linux installation. This article introduces it under the installation under the Windows operating system. I believe this article, you will be easy to architecture a Web site with powerful features.

The first request is that JDK has been installed normally. Here I will not be reduced by JDK installation, which is more in this regard.

Resin reached the purpose of the JSP interpreter, there are two ways, one is integrated with IIS, one is an HTTPD as Standalone. That ways to use it, you must see personal preferences and actual conditions. I use the first one.

First explain the simplest STANDALONE method.

This method is hardly configured, and after extracting RESIN, it can run bin / httpd.exe directly. It should be noted that two windows are generated after running httpd.exe, one is similar to the command line window (but only output, cannot be entered), and the other is the GUI control window, these two windows are absolutely not to use direct X The method is closed, which can cause RESIN's system errors, the correct way is to use the Quit button above the GUI.

Wait until the command line window appears:

Resin 2.1.6 - Mon Oct 2 17:34:31 PDT 2000 Listening to *: 8080

This is the successful startup, the back 8080 is the port listening now. This port can be modified. When modified, you need to change the conf / resin.conf file, modify the following

Section: XML:

8080

Modify the 8080 here to you want Port. But please pay attention to not repeating with the port already occupied, otherwise you cannot start. At this time, RESIN HTTPD is already accepted, with IIS's basic functions, the HTTP root directory is the resin installation directory's doc directory but can be modified, can be modified

Conf / resin.conf: XML: DOC This is the default situation, you can also write an absolute path to define other directories. Enter http: // localhost: 8080 / see! Let me talk about how to integrate with IIS. In this mode, RESIN is run as an IIS plug-in, and only parsing when .jsp, .xtp, etc. will be parsed, as if asp.dll is responsible for parsing .asp files, perl.dll is responsible for parsing the .pl file . This configuration is more complicated, and may lead to problems, but it brings very convenient.

Please think twice.

Below I want to talk about manual installation, personal feeling that the setup.exe it provides is often problematic, and it is unreliable.

1. After installing JDK, RESIN (these are nonsense)

2. Execute bin / setup.exe file

Fill in the RESIN HOME and IIS / PWS directory, click OK, he will stop IIS / Copy IIS_Run.dll / Start IIS, there will be an IIS_Run.dll file below your IIS. At the same time, there will be a Srun in the filter in the FILTER configuration. 3. This time RESIN is not used, you also need to install a service to execute the SRun.exe -Install command below the bin / directory. This will install a RESIN service to the system.

4. Configure the RESIN.CONF file

Edit the following section:

DOC

Modify DOC to your wwwroot, this time is fine!

5. Restart the system

This step is required. If you don't restart, the RESIN service will not run correctly.

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

In this case, I will come roughly a paragraph. In the future, IIS and RESIN will have their respective division, IIS is responsible for the resolution of HTML and ASP files, Resin is responsible for the analysis of JSP files. The last thing to say is that RESIN is very powerful, virtual catalog, virtual host, load balancing can be implemented.

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

New Post(0)