Linux Network Server Architecture Practice

zhaozj2021-02-16  63

/ * ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ------------------------ Write in front: I see many netizens's questions are related to server configuration, build a reliable and safe application development The server is the foundation of web programming, especially for friends who have developed JSP on Linux.

This document is the crystallization of my multi-year server configuration. I haven't been modified by my N before publishing (the last big revision is just released in RH7.2, and then because I have not found a mistake because I didn't find any mistakes, I didn't have it. Upgrade), the document is reprinted by the antenna network at the end of 2001 (http://www.yesky.com/20020206/217592.shtml), then reproduced by LinuxBYE.NET, CNJSP.com and other Linux and Java communities, after the time test I have never been discovered by you so far.

Documentation is not ideal in the web page, if you want to get PDF of this document, or have any comments, you can mail to Roczhao@msn.com

The document is longer, divided into more articles, this is the ninth article, the following is the text: -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ----------------------------------------- * /

Frequent error 5: Invalid Authorization Specification

500 Servlet Exception

Java.lang.AbstractMethodError

AT _CNMYSQL__Jsp._JspService (/cnmysql.jsp:11)

At com.caucho.jsp.javapage.service (javapage.java: 74)

At com.caucho.jsp.page.subservice (page.java: 485)

At com.caucho.ser.http.filterchainPage.dofilter (FilterchainPage.java: 176)

At com.caucho.ser.http.invocation.service (Invocation.java: 278)

At com.caucho.ser.http.cacheinvocation.service (cacheinvocation.java: 129)

At com.caucho.server.http.RunnerRequest.HandleRequest (runnerRequest.java: 338)

At com.caucho.server.http.runnerRequest.handleconnection (runnerRequest.java: 270)

At com.caucho.ser.tcpConnection.run (tcpConnection.java: 140)

AT java.lang.thread.run (thread.java: 484)

RESIN 2.0.5 (Built THU NOV 15

17:56:24 PST

2001)

reasons may be:

1. The JDK version you installed is too low that the JDBC version is not 2.0;

2, greater possibility is that your driver does not support JDBC2.0, JDBC just provides an abstract class interface, which requires drivers to be implemented as its physical class.

Solution:

1. Upgrade JDK, my suggestion is IS J2SDK-1_3_1_01-linux-i386.bin, see the JVM Install section;

2, replace the database driver, you are likely to use mysql_comp.jar, use mm.mysql-2.0.4-bin.jar.zip to replace it. Common error six: Chinese garbled

possible reason:

When installing the operating system, you don't have the i18n's simplified package and do not handle it in the source file.

Solution:

1, html method, add the following line to your JSP source code:

2, JSP mode one:

<% @ Page ContentType = "text / html; charset = GB2312"%>

3, JSP mode 2:

Generally speaking, using RESIN does not require this method, I have never used it. Only by using Dong Dong, which is like Tomcat, it is possible to use this cumbersome method, but this method has its advantages, that is Improve the portability of the program, not for the system or the engine garbled.

<%

String chs = "This method is definitely!";

BYTE [] BCHS = chs.getbytes ();

OUT.PRINT (New String (BCHS, "8859_1");

%>

Appendix

Appendix I: Thanks

character:

Many of my knowledge comes from colleagues and friends, please allow me to occupy a little bit here to express my most sincere gratitude to my friend.

Mr. Jim Zhao is my original colleague, a breakthrough talent, a fanatic Linux fan, he is the enamel in Unix and Linux, he guides me to enter this wonderful world and in me Give a lot of help on the road to beginners, thank you, Jim.

Many netizens who have never met have also taught me, like Mr. Axman and Mr. Popeye. Mr. Axman is a master of Linux and Java. He is outstanding and talented with the ancient road of heroes. The ancient road of heroes is admirable; Mr.Popeye is very small but has excellent skills, and I have also admitted to me a lot. In addition, Mr. Liu Yang, Mr. Liu Yang, has also put forward a lot of recommendations on issues such as Mysql client, JDBC driver and article. There are still many friends like this and are not listed.

Site:

I also got a lot of knowledge and resources from many sites and forums, gratitude to the owners and participants of these sites:

LinuxByte: http://www.linuxbyte.net

LinuxAid: http://www.linuxaid.com.cn

China JSP network http://www.cnjsp.net

China Linux Forum: http://www.linuxforum.net

thank you all!

Appendix II: Todo List

Plan to add content:

1. How to customize the installation of the operating system;

2, add QMAIL configuration method and webmail development ideas;

3, realization of disk quota;

4. Enhance system security method;

5, implementation method for load balancing;

6, add a FAQ list;

7, OpenSS installation configuration;

8, PROFTPD installation configuration;

9. Installation configuration of the firewall;

10, make the startup script is more perfect, more standard;

Appendix III: Revision Log

1, 12/20/2001 First release.

Language: English

Version: 0.0.1

release:

http://www.linuxbyte.net

Title: Latest RedHat 7.2 Web Development Server Configuration Document

http://www.iuirc.com/cnjspbbs/

Title: The latest Redhat 7.2 Web Development Server Configuration Document (PDF format)

2, 12/22/2001 The second release.

Language: Simplified Chinese;

Version: 0.0.2

release:

http://www.linuxbyte.net

Title: Redhat Linux Network Server Architecture Practice (CHS_0.0.2_12-22-2001)

http://www.iuirc.com/cnjspbbs/

Title: Redhat Linux Network Server Architecture Practice (CHS_0.0.2_12-22-2001)

modify:

2 Displace the language to Simplified Chinese;

2 Add a lot of comments;

2 Modify several text errors;

2 Add the method of use of the connection pool;

2 Add the method of use, and provide a database processing component;

2 Update the directory structure;

2 Modify TODO list;

3, 01/18/2002 Third release.

Language: Simplified Chinese;

Version: 0.0.2.1

release:

http://www.linuxbyte.net

Title: The latest Redhat Linux network server architecture practice (Ver 0.0.2.1)

Http://www.yesky.com/20020206/217592.shtml

Title: RedHat Linux server configuration practice

modify:

2 Upgrade MySQL, Resin and phpMyadmin to the latest version;

2 PHP uses the DSO installation mode, and installs with Apache;

2 Improve the installation steps of phpmyadmin;

2 RESIN is upgraded from 2.0.4 to 2.0.5 to solve the problem that the default document cannot be opened;

2 Enhance the security of the CLASSES directory under the JSP site;

2 Modify several redundancy of database processing components;

2 Tips the reason for remote login can't be implemented;

2 Update the TODO list;

2 revised the copyright statement;

4, 07/31/2002 Fourth modification.

Language: Simplified Chinese;

Version: 0.0.2.2

Publish: Not released.

After more than half a year of practice, the document user has not found a mistake, this modification is just a point of illustration,

So did not release it.

modify:

2 Note in STEP 8, indicating that the user mechanism of Linux and MySQL is different;

Added a release location on the antenna online;

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

New Post(0)