/ * ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ------------------------ 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), documentation
Be reprinted by Tianji.com by the end of 2001 (http://www.yesky.com/200206/217592.shtml), then reproduced multiple Linux and Java communities such as LinuxBYE.NET, CNJsp.COM, have not been discovered since the time test Error, you are as good as
safe to use.
Documentation is not ideal in the web page, if you want to get the PDF of this document, or have any comments, you can mail to Roczhao@msn.com or leave a message here.
The document is longer, divided into more articles, this is the first, the following is the body: -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ----------------------------------------- * /
Redhat linux
Network server architecture practice
A Compendious Configure Guide for Redhat Linux 7.x
Tell you how to use redhat 7.x build your Web Develop server step by step
Author: Zhao Fengjun
Email: roczhao@msn.com
Version: CHS_ 0.0.2.2
Last Review:
August 7,2002
Copyleft (2002) with GNU Free Documentation License.
Copyleft (2002) with GNU Free Documentation License.
This document is originally created by Zhao Fengjun (ROC ZHAO) from December 18, 2001.
Follow the GNU Free Documentation License (GFDL) license agreement, the author statement is as follows:
As a return on the development source code community, anyone is free to use, reproduce, disseminate this document without business purposes; but without authorization, you may not use this document in any purpose and manner. Or all of the commercial interests, otherwise you will be severely civilized and criminal sanctions and are subject to the largest possible civil prosecution within the scope of the law.
If you need to reprint this document, it is recommended that you send the author to inform the author, so that the author and readers can know the release of this document; if you have modified this document, you must keep this copyright instructions and write your modification record in the document appendix. In the modification log, the modified result is published to the network with everyone.
Author: Roc Zhao
Mail: roczhao@msn.com
Site: http://roczhao.gledecity.com (not available)
QQ: 27565476
Version: CHS_0.0.2.2
Last Revised:
August 7, 2002
Copyleft (2001) with GNU Free Documentation License.
table of Contents
Copyleft (2002) with gnu free documentation license. 2 directory ..... 3
Tell me your opinion ..... 6
Preface ..... 7
Software list ..... 9
Configuration steps ..... 10
Step 1 Redhat 7.2 Install 10
Step 2 x setup .. 10
Step 3 Services setup .. 11
Step 4 DNS Setup .. 11
1 Create a standard area ... 11
2 Create a domain name library file ... 11
3 restart DNS service ... 12
4 domain name query ... 12
Step 5 kde setup .. 12
Step 6 ftp setup .. 12
Step 7 MySQL, Apache and PHP Unistall 13
Step 8 MySQL Install 13
1 Prepare users ... 13
2 Install mysql. 13
3 Modify folder permissions ... 14
4 reload dynamic library ... 14
5 test mysql. 14
6 Create a startup script ... 15
Step 9 Apache Install 15
1 Install Apache. 15
2 establish a symbol connection ... 15
3 Edit profile ... 16
4 test apache. 16
5 Create a startup script ... 16
Step 10 PHP Install 16
1 Install PHP. 16
2 Configure Apache. 17
Step 11 JVM Setup .. 17
Step 12 Classes Install 17
Step 13 Edit / etc / profile .. 18
Step 14 RESIN Install 19
1 Install resin. 19
2 establish a symbol connection ... 19
3 Modify the configuration file ... 19
4 test resin. 21
5 Create a startup script ... 22
Step 15 phpmyadmin install 23
1 Configure DNS. 23
2 Establish FTP. 23
3 Install phpMyAdmin. 23
4 Add a virtual host ... 23
5 Add authentication ... 24
6 test phpmyadmin. 25
Step 16 Server Test .. 25
Example 1: Connect the database using the connection string ... 25
Example 2: Use the connection pool to connect the database ... 28
Example 3: Use the processing layer to connect to the database ... 29
Example 4: Test PHP. 35
Step 17 Configuration Debug .. 36
Frequently wrong one: you don't have permission .. 36
Common Error 2: 404 Not Found .. 37
Common error 3: java.lang.classNotFoundException .. 37
Common error four: Invalid Authorization Specification .. 38
Frequent error 5: Invalid Authorization Specification .. 39
Common error six: Chinese garbled ... 39
Appendix ... 41
Appendix I: Thanks .. 41
Appendix II: Todo List .. 41
Appendix III: Revision Log .. 42
Tell me your opinion
On Linux's road, I am a forever student. This is the recent note that I have recently configured the server, and then I will organize it into a configuration document. Later, I posted it to the network, I hope to help beginners and get everyone's suggestions, make it more rigorous. And improve.
One of the benefits of opening up source code is to share your things out with you, let everyone analyze themselves, criticize themselves, thus make it more rigorous and perfect. So, although I know my shallow, I just have some very shallow things, but I still take it out and accept everyone's inspection. So, I hope that you can get your feedback, including comments and suggestions, etc. If you find the following case, please do not know:
2 Is there any error in the document?
2 Language expressed clear and perfect?
2 Do you need other content? If so, what do you need?
2 Whether the example is correct? Do you need more examples?
2 Will the document typography comfort? If you are not comfortable? What is your suggestion?
2 What are your most appreciation? What are the documentation? Which chapters?
If you have any suggestions, please note that the document name, problem, error chapter, page number and other information, and other information.
You can contact me by way of following:
2 Email: roczhao@msn.com
2 Person Home: http://roczhao.gledecity.com (currently unavailable)
2 QQ: 27565476
2 Address: China. Shenzhen
Thank you very much for reading this document. If you are successful in accordance with this document, congratulate you! If you encounter a problem, tell me.