My Java Road First Day Win2000 Apache2 + Resin3 setting

xiaoxiao2021-03-06  71

I finally started learning Java, in fact, it is a need. At present, the projects in the hands are websites, and you must use JSP, so Java is not learning.

The first is to set up a development environment. My operating system is Win2000 Adavaced Server, requiring J2SDK, Apache, Resin's Windows version.

1) J2SDK: It is 1.4.2.05, download address http://java.sun.com/j2se/1.4.2/download.html. At present, J2SDK1.5 is still in the BETA stage, not used, immediately upgraded after formally released.

My J2SDK is installed in D: / J2SDK /, after installation, in my computer -> attribute -> Advanced -> Environment Variable New Two System Variables Java-Home = D: / J2SDK, Class-Path = D: / J2sdk / lib.

2) Apache: It is 2.0.50, download address http://httpd.apache.org/download.cgi. If there is an upgrade, the upgrade is synchronized.

My Apache is installed in D: / apache2 /.

3) RESIN: Ee version of 3.0.8, download address http://www.caucho.com/download/. The 3.0 version can only be tried for 60 days, and it is really not possible to use 2.1. Synchronous upgrade.

My RESIN is installed in D: / Resin-Ee /. After installation, in my computer -> attribute -> Advanced -> Environment Variables Resin-Home = D: / RESIN-EE

After the installation is complete, Test Apache and Resin, respectively.

1) Apache: Confirm that the status in the Apache2 icon on the taskbar is start, enter the http: // native address in the browser, and the Apache test page should appear.

2) RESIN: Enter d: / resin-ee / bin /, run httpd.exe. Enter http: // native address in your browser: 8080, the resin's document page should appear.

Stop Apache and Resin separately.

Enter D: / Resin-Ee / Bin /, run setup.exe, select Apache, click Apply button to confirm, then RESIN has modified the D: /apache2/conf/httpd.conf file, write the RESIN's setup information .

Enter D: / Resin-Ee / Conf, open resin.conf with text editor, find the text of DOC to modify the DOC to D: / apache2 / htdocs /, That is to point the RESIN's document path to the Apache's web document directory.

OK! Let's run apache2 and run RESIN.

Enter http: // native address in your browser, there should still be Apache's test page.

Enter http: // native address in your browser: D: / apache2 / htdocs / under the list of document files should appear, which means that we have successfully changed the document path of Resin.

In D: / Apache2 / HTDOCS / under our new file named Test.jsp, the content is:

2 2 = <% = 2 2%>

Enter http: // native address / Test.jsp in the browser, the result of this occurs should be

2 2 = 4

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

New Post(0)