Linux network server architecture secondary

zhaozj2021-02-16  60

/ * ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ------------------------ 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 second article, the following is the body: ----------------------------- --------------------------------------- * /

Foreword

Here I will explain the writing motivation, configuration target, main content, follow the principles and instructions for this document.

On my LINUX's beginner road, the kind of unknown, nowhere to ask, the feeling of bruises is unforgettable, and the songs are too deep. Therefore, this will constantly accumulate, crystallize. Make the later people don't take too much detours like me. One can be used as an initiator's installation guide, and its second can also hear everyone's opinions and suggestions, making it more rigorous and perfect.

The goal of this document is to architecture a comparative specification RedHAT development server as a project development environment. This document currently has a total of seventeen steps, concise and comprehensive introduction of the configuration of DNS, FTP, MySQL, Apache, JVM, RESIN, PHP and other servers.

Below is a few principles that I have written in this document:

1. Strive to make a concise: remove any extra steps; let the command speak, only the necessary comments, so that everyone is used as a configuration list. This document mainly tells the reader how to do it, rarely explain why doing this, but it is necessary to pay attention to that if you ignore any of these steps, it may result in behind an error;

2, the system is comprehensive: Steps run through the whole process from the installation operating system to the configuration completed, beginners step by step; the server configuration is a system process, many explanatory documents simply explain the configuration method of a few software, no Coordinate, so it often fail to fail;

3, strive to be rigorous: this is my goal, it is one of my reasons. Now this document has been released in this document. It has been more than half a year. After hundreds of people, it is unknown, and it has been improved. It is already possible to guarantee good reliability;

4. Keep the latest: including the operating system, all software is the latest version of 01/18/2002, if there is a new software version, I will work hard to update in time;

5. Featured software: The software mentioned in the article is familiar, only two need to be explained. One: Why don't you choose FreeBSD? FreeBSD is the best network operating system on the Intel platform, but it supports Java (especially new version of JDK), I have used FreeBSD as a Java development platform for a longer period of time, but because Sun is not Release the JDK on FreeBSD, so often cause the system to crash, it is already experienced many times; why not use Tomcat to use RESIN? Although Tomcat is a project of Apache, although it is constantly improving, it is not a good gap than RESIN; RESIN is in Chinese support, perform efficiency, customizable, upgrade speed, support J2EE, etc. The performance is also my personal already experience; although I suspect that it is in high-end applications, system loads, etc., but should be more than enough; 6, focus on JSP: to build JSP development environment The Lord, can be used as a JSP beginner's server configuration manual: 1. RH7.2 enhances the support of multi-language, if you select the I18N's Simplified Chinese Pack when selecting the language during the installation process, plus resin's good Chinese Support, you don't have to declare Content-Type (no way to declare), Chinese will be automatically supported, this document has also been explained; 2: Provide the configuration method and calling method for the RESIN connection pool, and provide one For database connection and processing components; three: Provide a detailed approach to add a JSP virtual host, a comprehensive story from DNS FTP Apache to RESIN; 4: It is pointed out of the JDBC2.0 support method, and provides code for testing;

7, compilation and installation: Software is compiled and installed, which is beneficial to system customability and system stability;

8. Target readers: Linux beginners' configuration wizards and reference for middle and senior readers;

9. Configuration Target: This document is currently best for the configuration manual for the internal development server. If the security factor needs to be considered as the Internet server, the minimum can not be installed, and the internet server does not only need me. The functions mentioned in the document require a simple and secure system;

10, the function is clear: I am positioning the server in a Web development server of a DNS FTP MYSQL Apache Resin PHP architecture, and will be able to remove it without any service. Therefore, there is no configuration method such as qmail, oracle, and ASP, FrontPage extensions in the document. In addition to the separation of the function and readers, Oracle's best run platform is SUSE Linux, the best run platform for ASP is NT, as for qmail, follow-up can be increased;

The following is the instructions for this document:

1, color description:

Dark blue: modified or added in the original document

Dark green: My comment

2, symbol description

#: System or software configuration document originally annotated;

##: I have explained the following paragraph

//: My end of my line

/ * ... * /: long explanation

3, command description:

I am used to using VI to represent editing a file, if you don't like to use this tool, you can fully use other commands such as visual editor or MC, such as Advanced Editor.

Occasionally, I will add shell> before the command, indicating that this is a command to distinguish between the file content, but this version is Chinese, so I usually not add this symbol. Make and make install can be replaced using make; make install, but in order to facilitate viewing each step prompt information, it is recommended to execute separately.

. / There are many places in the text, there is no space in the middle, and the points are not obvious, you need to pay attention.

Zhao Fengjun

December 22, 2001

Software list

Download the software below and put them in the / home / src directory. First create a system account and put the software in this directory. The following software will be used in this document, the following connections are the latest version of 01/18/2002:

RedHat 7.2

Http://redhat.pacific.net.au/redhat/linux/7.2/ja/iso/i386/

mysql-3.23.47.tar.gz

http://www2.linuxforum.net/mirror/mysql/downloads/mysql-3.23/mysql-3.23.47.tar.gz

mm.mysql-2.0.4-bin.jar

http://www2.linuxforum.net/mirror/mysql/downloads/contrib/mm.mysql-2.0.4-bin.jar

Apache_1.3.22.tar.gz

http://www.apache.org/dist/httpd/apache_1.3.22.tar.gz

PHP-4.1.1.tar.gz

http://www.php.net/do_download.php?download_file=php-4.1.1.tar.gz

J2SDK-1_3_1_01-linux-i386.bin

http://java.sun.com/j2se/1.3/download-linux.html

JAF1_0_1.ZIP

Http://java.sun.com/products/javabeans/glasgow/jaf.html

JavaMail1_1_3.zip

http://java.sun.com/products/javamail/javamail-1_1_3.html

Resin-2.0.5.tar.gz

http://www.caucho.com/download/resin-2.0.5.tar.gz

phpMyadmin-2.2.3-php.tar.gz

http://prdownloads.sourceforge.net/phpmyadmin/phpmyadmin-2.2.3-php.tar.gz

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

New Post(0)