Install RESIN in 2000

xiaoxiao2021-03-06  88

How to install, configure resin2.1.5 in Win2000?

-------------------------------------------------- -------------

/ bin starts

Your program is put on / doc

IP: 8080 Access

-------------------------------------------------- -------------

(1) Installation and commissioning of the RESIN Development Platform under the Windows2000 environment:

1 Required main software:

J2SDK 1.4.0 Beta2 Edition

RESIN version 2.0.2

MySQL version 3.23.41

3 main software download:

1.J2SDK-1_4_0-beta2-win.exe is downloaded at http://java.sun.com/j2se/1.4/. 37.2MB.

2.Resin-2.0.2.zip version is downloaded at http://www.caucho.com/download/index.xtp. 4.17MB.

3. Mysql-3.23.41-win.zip downloads at http://www.mysql.com/downloads/mysql-3.23.html. 11.9MB.

4 Main software installation:

1. J2SDK1.4.0 installation is simpler, just press the prompt to install it as a C: /JDK1.4 directory.

2. RESIN2.0.2 installation is simpler, just extract it to C: / under use WinZip, which will automatically generate a C: /RESIN-2.0.2 directory.

3. When mysql3.23.41 is installed, first extract it to any directory, run setup.exe in the directory and press the prompt to install it as a C: / mysql directory.

5 Main software configuration:

1. Add the following lines in the c: /autoexec.bat file:

SET PATH = C: / Tools; c: /jdk1.4/bin; c: /jdk1.4/jre/bin

/ / Specify the Java path

Set classpath = c: /RESIN-2.0.2/lib; c: /jdk1.4/lib; c: /jdk1.4/jre/lib // Specify class path

Set java_home = c: /jdk1.4

2. Modify the C: /RESIN-2.0.2/conf/RESIN.CONF file content:

...

// Specifies the JAVA compilation path used by JSP

...

JDBC / TEST

javax.sql.datasource

// mysql JDBC driver name

// mysql database path

// username

// password

...

DOC // Specify the web root directory

...

// Specify the httpd port number

...

// Add this line after , the purpose is to ban the client browsing directory

...

Source = 'Web-INF / CLASSES' // Specify compiling class path

Compile = 'true' /> // To compile this directory

...

index.jsp

/ / Specify the httpd file name

...

1. Run C: /RESIN-2.0.2/bin/setup.exe settings with other web servers.

2. Restart Windows

6 Main software started:

1. MySQL start: Run c: /mysql/bin/winmysqladmin.exe

2. RESIN start: Run C: /RESIN-2.0.2/bin/httpd.exe

7 Main body software debugging:

1. Enter http://127.0.0.1/index.xtp in the browser's address bar to see the resin introduction and description of Caucho, and run the various DEMO programs, RESIN's JSP foundation platform Installation and commissioning is successful!

2. Create a JDBC.JSP file in the c: /resin-2.0.2/doc directory (editable with FrontPage 2002):

JSP-JDBC page </ title></p> <p></ hEAD></p> <p><body></p> <p><% @ Page ContentType = "text / html; charset = GB2312"%></p> <p><%</p> <p>Java.sql.connection sqlconn;</p> <p>Class.Forname ("com.caucho.jdbc.mysql.driver"). NewInstance ();</p> <p>SQLCONN =</p> <p>Java.sql.drivermanager.getConnection ("JDBC: mysql_caucho: // localhost: 3306 / test", "", "");</p> <p>%></p> <p></ body></p> <p></ html></p> <p>3. Enter http://127.0.0.1/jdbc.jsp in the address bar of the browser, you can't see any error information (the page is blank), the connection between RESIN and MySQL is by c: /RESIN-2.0. 2 / lib / jdbc-mysql.jar as a MySQL JDBC driver, a complete JSP platform installation and commissioning is successful! (2) Redhat Linux 7.1 (2.4.2-2) Environment RESIN Application Platform installation and commissioning:</p> <p>1 Redhat Linux 7.1 (2.4.2-2) is fully installed in English language (2.2GB). After installation, apache1.3.19, mysql3.23.36 and other software have been installed in Linux, in order to automatically load it when the system is started. The above software, logged in with the root user and runs setup:</p> <p>1. Select the FireWall Configuration item, select the Customize item, select the [*] WWW (http) entry, and then exit. This allows the system to open HTTP functions.</p> <p>2. Select the NetWork Configuration item to fill in the corresponding network address (eg 192.168.100.1) at the IP AddRES, fill in the corresponding mask (eg 25555.255.0) at NetMask, and then exit. This has a fixed IP address.</p> <p>3. Select the System Services item, select [*] httpd item and [*] mysqld, and then exit. This allows the system to automatically start HTTPD and MySQLD software at the next startup.</p> <p>2 required main software:</p> <p>J2SDK 1.4.0 version</p> <p>RESIN version 2.0.2</p> <p>3 main software download:</p> <p>1.J2SDK-1_4_0-beta2-linux-i386-rpm.bin is in http://java.sun.com/ /j2se/1.4/. 36.6MB.</p> <p>2.Resin-2.0.2.tar.gz Download at http://www.caucho.com/download/index.xtp. 3.12MB.</p> <p>4 Main software installation:</p> <p>1.JDK1.4.0 installation:</p> <p>#CP J2SDK-1_4_0-beta2-linux-i386-rpm.bin / usr / local copies the J2SDK1.4.0 to the / usr / local directory.</p> <p>#CD / USR / LOCAL enters this directory.</p> <p>#. / j2sdk-1_4_0-beta2-linux-i386-rpm.bin automatically generates J2SDK-1.4.0.i386.rpm file.</p> <p># rpm -ivh j2sdk-1.4.0.i386.rpm Unzip this file and generates /usr/local/jdk1.4.0 directory.</p> <p>#LN -s JDK1.4.0 JDK creates JDK shortcuts.</p> <p>#LN -s JDK / JRE establishes JRE shortcuts.</p> <p>2.Resin2.0.2 installation:</p> <p>#cp resin-2.0.2.tar.gz / usr / local copies the RESIN 2.0.2 into the / usr / local directory.</p> <p>#CD / USR / LOCAL enters this directory.</p> <p>#TAR XVZF RESIN-2.0.2.tar.gz Decompress this file and automatically generates /usr/local/resin-2.0.2 directories.</p> <p>#CD resin-2.0.2 Enter the directory.</p> <p>#. / configure -with-apache = / usr / local / apache</p> <p>#make</p> <p>#make install</p> <p>5 Main software configuration:</p> <p>1. # vi /etc/rc.d/rc.local Edit System Self-started file:</p> <p>Join one line:</p> <p>/usr/local/resin-2.0.2/bin/httpd.sh start</p> <p>/ / Means that the resin service is also launched when the system is boosted.</p> <p>// Note: Stop /usr/local/resin-2.0.2/bin/httpd.sh stop</p> <p>// Note: Restart /usR/local/RESIN-2.0.2/bin/httpd.sh restart</p> <p>// Note: If the system appears after restarting:</p> <p>#TCP Start at Mon Aug 27 07:00:10 CST 2001</p> <p>#tcp start at mon Aug 27 07:00:20 CST 2001</p> <p>#TCP Start at Mon Aug 27 07:00:30 CST 2001</p> <p>...</p> <p>The solution is to put /usr/local/resin-2.0.2/bin/httpd.sh start</p> <p>This line comes out in rc.local. Manual operation after restart</p> <p>/usr/local/resin-2.0.2/bin/httpd.sh start.</p> <p>2. # vi / etc / profile Editing System Environment Profile:</p> <p>Join the following lines:</p> <p>PATH = $ PATH: / USR / local / jdk / bin: / usr / local / jre / bin</p> <p>Export Path</p> <p>Java_home = / usr / local / jdk</p> <p>Export java_home</p> <p>Classpath = / usr / local / jdk / lib: / usr / local / jre / lib: /usr/local/resin-2.0.2/lib</p> <p>Export ClassPath</p> <p>3. # vi /etc/httpd/conf/httpd.conf Edit Apache profile:</p> <p>Modify the following lines:</p> <p>Listen 8080</p> <p>Port 8080</p> <p>// The two lines of the above are the default HTTP port 80 of Apache, ready to give RESIN.</p> <p>4. # vi /usr/local/resin-2.0.2/conf/RESIN.CONF Edit the resin profile:</p> <p>Modify the following lines:</p> <p>...</p> <p><java compiler = "/ usr / local / jdk / bin / javac" compiler-args = "" Work-Dir = 'Work' /> // Specify compilation file JAVAC path</p> <p>...</p> <p><resource-ref></p> <p><res-ref-name> JDBC / TEST </ RES-REF-NAME></p> <p><Res-Type> javax.sql.datasource </ res-Type></p> <p><init-param driver-name = "com.caucho.jdbc.mysql.driver" /> // mysql JDBC driver name</p> <p><init-param url = "jdbc: mysql_caucho: // localhost: 3306 / test" /></p> <p>// mysql database path</p> <p><init-param user = "" /> // username</p> <p><init-param password = "" /> // password</p> <p><init-param max-connections = "20" /></p> <p><init-param max-idle-time = "30" /></p> <p></ resource-ref></p> <p>...</p> <p><App-Dir> DOC </ App-Dir> // Specify the web root directory</p> <p>...</p> <p><http port = '80 '/> // Specify httpd port number ...</p> <p><Directory-Servlet ID = 'False' /></p> <p>// Add this line after <web-app id = '/'>, the purpose is to ban the client browsing directory</p> <p>...</p> <p><classpath id = 'web-inf / classes'</p> <p>Source = 'Web-INF / CLASSES' // Specify compiling class path</p> <p>Compile = 'true' /> // To compile this directory</p> <p>...</p> <p><welcome-file-list> index.jsp </ welcome-file-list></p> <p>/ / Specify the httpd file name</p> <p>5. # vi /usr/local/resin-2.0.2/bin/httpd.sh Edit Resin profile:</p> <p>(No change)</p> <p>6 Main software debugging:</p> <p>1. Enter http://127.0.0.1/index.xtp in the browser's address bar to see the resin introduction and description of Caucho, and run the various DEMO programs, RESIN's JSP foundation platform Installation and commissioning is successful!</p> <p>2. Create a JDBC.JSP file in the /usr/local/resin-2.0.2/doc directory (available VI first edit the jdbc.txt file, then use #CP jdbc.txt /usr/local/resin-2.0.2/ DOC / JDBC.JSP):</p> <p><html></p> <p><HEAD></p> <p><meta name = "generator" content = ">></p> <p><meta name = "progid" content = ">></p> <p><meta http-equiv = "content-type" content = "text / html; charSet = GB2312"></p> <p><title> JSP-JDBC page </ title></p> <p></ hEAD></p> <p><body></p> <p><% @ Page ContentType = "text / html; charset = GB2312"%></p> <p><%</p> <p>Java.sql.connection sqlconn;</p> <p>Class.Forname ("com.caucho.jdbc.mysql.driver"). NewInstance ();</p> <p>SQLCONN =</p> <p>Java.sql.drivermanager.getConnection ("JDBC: mysql_caucho: // localhost: 3306 / test", "", "");</p> <p>%></p> <p></ body></p> <p></ html></p> <p>3. Enter http://127.0.0.1/jdbc.jsp in the browser's address bar. You should not see any error information (the page is blank</p></div><div class="text-center mt-3 text-grey"> 转载请注明原文地址:https://www.9cbs.com/read-107019.html</div><div class="plugin d-flex justify-content-center mt-3"></div><hr><div class="row"><div class="col-lg-12 text-muted mt-2"><i class="icon-tags mr-2"></i><span class="badge border border-secondary mr-2"><h2 class="h6 mb-0 small"><a class="text-secondary" href="tag-2.html">9cbs</a></h2></span></div></div></div></div><div class="card card-postlist border-white shadow"><div class="card-body"><div class="card-title"><div class="d-flex justify-content-between"><div><b>New Post</b>(<span class="posts">0</span>) </div><div></div></div></div><ul class="postlist list-unstyled"> </ul></div></div><div class="d-none threadlist"><input type="checkbox" name="modtid" value="107019" checked /></div></div></div></div></div><footer class="text-muted small bg-dark py-4 mt-3" id="footer"><div class="container"><div class="row"><div class="col">CopyRight © 2020 All Rights Reserved </div><div class="col text-right">Processed: <b>0.037</b>, SQL: <b>9</b></div></div></div></footer><script src="./lang/en-us/lang.js?2.2.0"></script><script src="view/js/jquery.min.js?2.2.0"></script><script src="view/js/popper.min.js?2.2.0"></script><script src="view/js/bootstrap.min.js?2.2.0"></script><script src="view/js/xiuno.js?2.2.0"></script><script src="view/js/bootstrap-plugin.js?2.2.0"></script><script src="view/js/async.min.js?2.2.0"></script><script src="view/js/form.js?2.2.0"></script><script> var debug = DEBUG = 0; var url_rewrite_on = 1; var url_path = './'; var forumarr = {"1":"Tech"}; var fid = 1; var uid = 0; var gid = 0; xn.options.water_image_url = 'view/img/water-small.png'; </script><script src="view/js/wellcms.js?2.2.0"></script><a class="scroll-to-top rounded" href="javascript:void(0);"><i class="icon-angle-up"></i></a><a class="scroll-to-bottom rounded" href="javascript:void(0);" style="display: inline;"><i class="icon-angle-down"></i></a></body></html><script> var forum_url = 'list-1.html'; var safe_token = 'nGpivJQw2XobsJk4_2B9sRNcFbdnj0bgwaBrGjcLZrd0AgGyhiGw7A9A0SpGEs3B_2BzyQRqXkOfFDud_2Bfq6'; var body = $('body'); body.on('submit', '#form', function() { var jthis = $(this); var jsubmit = jthis.find('#submit'); jthis.reset(); jsubmit.button('loading'); var postdata = jthis.serializeObject(); $.xpost(jthis.attr('action'), postdata, function(code, message) { if(code == 0) { location.reload(); } else { $.alert(message); jsubmit.button('reset'); } }); return false; }); function resize_image() { var jmessagelist = $('div.message'); var first_width = jmessagelist.width(); jmessagelist.each(function() { var jdiv = $(this); var maxwidth = jdiv.attr('isfirst') ? first_width : jdiv.width(); var jmessage_width = Math.min(jdiv.width(), maxwidth); jdiv.find('img, embed, iframe, video').each(function() { var jimg = $(this); var img_width = this.org_width; var img_height = this.org_height; if(!img_width) { var img_width = jimg.attr('width'); var img_height = jimg.attr('height'); this.org_width = img_width; this.org_height = img_height; } if(img_width > jmessage_width) { if(this.tagName == 'IMG') { jimg.width(jmessage_width); jimg.css('height', 'auto'); jimg.css('cursor', 'pointer'); jimg.on('click', function() { }); } else { jimg.width(jmessage_width); var height = (img_height / img_width) * jimg.width(); jimg.height(height); } } }); }); } function resize_table() { $('div.message').each(function() { var jdiv = $(this); jdiv.find('table').addClass('table').wrap('<div class="table-responsive"></div>'); }); } $(function() { resize_image(); resize_table(); $(window).on('resize', resize_image); }); var jmessage = $('#message'); jmessage.on('focus', function() {if(jmessage.t) { clearTimeout(jmessage.t); jmessage.t = null; } jmessage.css('height', '6rem'); }); jmessage.on('blur', function() {jmessage.t = setTimeout(function() { jmessage.css('height', '2.5rem');}, 1000); }); $('#nav li[data-active="fid-1"]').addClass('active'); </script>