Resin installation under Windows system

Source: Internet
Author: User
Tags command line iis modify root directory
Window JSP is a new web development tool developed on the basis of the servlet, and the ejb+jsp/servlet+ application Server + database has become the popular architecture of e-commerce site in foreign countries. If you choose to use the JSP platform as a support for Internet business sites, speed, price, and stability are to be taken into account, as these resin are excellent. Resin installed under Linux has been introduced in a number of articles, this article describes its installation under the Windows operating system, I believe that read this article, you will be very easy to structure a powerful web site.




The first requirement of
is that the JDK is installed normally. Here I do not redundant JDK installation, this aspect of the article more.





Resin achieves the purpose of the JSP interpreter, there are two ways to integrate with IIS, one as the httpd of standalone. The specific use of that method, to see a person's preferences and actual situation. I used the first kind.





first explain the simplest standalone method.





This method almost does not need to configure, will resin after the decompression, the direct operation Binhttpd.exe can. It should be noted that after running the Httpd.exe will produce two windows, one is similar to the Command Line window (but only output, can not enter), the other is the GUI control window, these two windows can never be closed with Direct X method, this will lead to resin system error, The correct approach 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 start of success, the following 8080 is the resin httpd now listening to the port. This port can be modified. Modify the time, need to change the Conf esin.conf file, modify the following





Section:xml:





<!--the HTTP port-->


<httpd-port>8080</httpd-port>





to change the 8080 here to you want port. However, be careful not to repeat the ports that are already in use, otherwise you will not be able to start. At this time, resin httpd is already receiving access, with the basic functions of IIS, the HTTP root directory defaults to the resin installation directory of the Doc directory but also can be modified, you can modify





conf esin.conf:xml:


<http-server>


<app-dir>doc</app-dir>


This is the default scenario, you can also write an absolute path to define other directories. Input http://localhost:8080/Look!


again, how to integrate with IIS. In this mode, resin is run as a plug-in for IIS, only when it encounters. Jsp,.xtp and so on, as if Asp.dll is responsible for parsing. asp files, Perl.dll is responsible for parsing. pl files. This configuration is more complex and may cause problems, but it is very convenient.





please think twice before you do.





below I would like to say is the manual installation method, personal feel it provides Setup.exe installed often have problems, and unreliable.





1. After installing the Jdk,resin (these are all nonsense)





2. Execute Binsetup.exe file





fill out the resin home and IIS/PWS directory, click OK, he will stop iis/replication iis_run.dll/boot IIS this time, in your IIS inetpubs cripts directory will have a Iis_run.dll file. There is also a srun in the IIS-configured filter.





3. Resin is not available at this time, and a srun.exe-install command is also required to install a service execution Bin directory. This will install a resin service for the system.





4. Configure resin.conf Files





Edit the following section:





<http-server>


<app-dir>doc</app-dir>





will doc modify the directory where your wwwroot is located, this time is good!





5. Reboot the system





This step is required and the resin service will not function correctly without restarting.





6. Browse Http://localhost/caucho-status See!





that way, it's almost over. Later, IIS and resin will perform their duties, IIS is responsible for parsing HTML and ASP files, resin is responsible for the parsing of JSP files. Finally, the resin function is very powerful, virtual directory, virtual host, load balance can be achieved.

















Related Article

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.