LINUX Java 環境及 Tomcat 安裝

今天實作的機器為 Dell-1950 安裝的 OS 為 RHEL ES4 Update5,首先我們要先實作安裝 JAVA JDK, 因此我們先從 Java SE Downloads 下載 JDK 6 Update 7:

進入剛剛的頁面後,選擇 JDK 6 Update 7 的 Download 按鈕 (這個版本內還包含了 Java Runtime Environment (JRE) 囉),接下來看到 "Select Platform and Language for your download:" 時選擇你的 OS 跟語言,這裡我選擇 Linux 的 Platfrom 以及 Multi-Language 為 Language 選擇同意後按 "Continus" 下載 "jdk-6u7-linux-i586-rpm.bin"。

或者從 Sun Microsystems 下載 Linux 專用的 Java 軟體:

進到剛剛的連結頁面後,按下 Linux RPM (自我解壓縮檔) 便可下載 JDK 6 Update 7。
--- 建議下載 RPM 自解壓縮格式的(RPM in self-extracting file,jdk-6u7-linux-i586-rpm.bin)

再來是將檔案上傳到這次實作的機器上,這裡就先 ftp 到 /opt 吧:
[root@KHXPROVS1 ~]# cd /opt
[root@KHXPROVS1 opt]# ls -alrt
total 181532
drwx------ 2 root root 16384 Jun 25 22:22 lost+found
-rw-r--r-- 1 root root 248493 Jul 1 14:35 iperf-2.0.4.tar.gz
drwxrwxrwx 8 501 501 4096 Jul 1 14:36 iperf-2.0.4
drwxr-xr-x 25 root root 4096 Aug 27 15:56 ..
drwxr-xr-x 4 root root 4096 Sep 4 09:32 .
-rw-r--r-- 1 root root 74397909 Sep 4 09:37 jdk-6u7-linux-i586-rpm.bin
將檔案權限改為可執行檔:
[root@KHXPROVS1 opt]# chmod +x jdk-6u6-linux-i586-rpm.bin
[root@KHXPROVS1 opt]# ls -alrt
total 181532
drwx------ 2 root root 16384 Jun 25 22:22 lost+found
-rw-r--r-- 1 root root 248493 Jul 1 14:35 iperf-2.0.4.tar.gz
drwxrwxrwx 8 501 501 4096 Jul 1 14:36 iperf-2.0.4
drwxr-xr-x 25 root root 4096 Aug 27 15:56 ..
drwxr-xr-x 4 root root 4096 Sep 4 09:32 .
-rwxr-xr-x 1 root root 74397909 Sep 4 09:37 jdk-6u7-linux-i586-rpm.bin
要開始安裝 JDK囉, 安裝時會有一段 Sun 的協議,敲幾個空白鍵,當詢問是否同意時,敲 yes 就好。
[root@KHXPROVS1 opt]# ./jdk-6u7-linux-i586-rpm.bin
Sun Microsystems, Inc. Binary Code License Agreement

for the JAVA SE DEVELOPMENT KIT (JDK), VERSION 6

SUN MICROSYSTEMS, INC. ("SUN") IS WILLING TO LICENSE THE
SOFTWARE IDENTIFIED BELOW TO YOU ONLY UPON THE CONDITION
THAT YOU ACCEPT ALL OF THE TERMS CONTAINED IN THIS BINARY
CODE LICENSE AGREEMENT AND SUPPLEMENTAL LICENSE TERMS
(COLLECTIVELY "AGREEMENT"). PLEASE READ THE AGREEMENT
CAREFULLY. BY DOWNLOADING OR INSTALLING THIS SOFTWARE, YOU
ACCEPT THE TERMS OF THE AGREEMENT. INDICATE ACCEPTANCE BY
SELECTING THE "ACCEPT" BUTTON AT THE BOTTOM OF THE
AGREEMENT. IF YOU ARE NOT WILLING TO BE BOUND BY ALL THE
TERMS, SELECT THE "DECLINE" BUTTON AT THE BOTTOM OF THE
AGREEMENT AND THE DOWNLOAD OR INSTALL PROCESS WILL NOT
CONTINUE.

1. DEFINITIONS. "Software" means the identified above in
binary form, any other machine readable materials
(including, but not limited to, libraries, source files,
header files, and data files), any updates or error
corrections provided by Sun, and any user manuals,
programming guides and other documentation provided to you
by Sun under this Agreement. "General Purpose Desktop
Computers and Servers" means computers, including desktop,
laptop and tablet computers, or servers, used for general
computing functions under end user control (such as but not
specifically limited to email, general purpose Internet
browsing, and office suite productivity tools).
The use of Software in systems and solutions that provide
dedicated functionality (other than as mentioned above) or
designed for use in embedded or function-specific software
applications, for example but not limited to: Software
embedded in or bundled with industrial control systems,
wireless mobile telephones, wireless handheld devices,
kiosks, TV/STB, Blu-ray Disc devices, telematics and
network control switching equipment, printers and storage
management systems, and other related systems are excluded
from this definition and not licensed under this
Agreement. "Programs" means Java technology applets and
applications intended to run on the Java Platform Standard
Edition (Java SE) platform on Java-enabled General Purpose
Desktop Computers and Servers.

2. LICENSE TO USE. Subject to the terms and conditions of
this Agreement, including, but not limited to the Java
Technology Restrictions of the Supplemental License Terms,
Sun grants you a non-exclusive, non-transferable, limited
license without license fees to reproduce and use
internally Software complete and unmodified for the sole
purpose of running Programs. Additional licenses for
developers and/or publishers are granted in the
Supplemental License Terms.

3. RESTRICTIONS. Software is confidential and copyrighted.
Title to Software and all associated intellectual property
rights is retained by Sun and/or its licensors. Unless
enforcement is prohibited by applicable law, you may not
modify, decompile, or reverse engineer Software. You
acknowledge that Licensed Software is not designed or
intended for use in the design, construction, operation or
maintenance of any nuclear facility. Sun Microsystems, Inc.
disclaims any express or implied warranty of fitness for
such uses. No right, title or interest in or to any
trademark, service mark, logo or trade name of Sun or its
licensors is granted under this Agreement. Additional
restrictions for developers and/or publishers licenses are
set forth in the Supplemental License Terms.

4. LIMITED WARRANTY. Sun warrants to you that for a period
of ninety (90) days from the date of purchase, as evidenced
by a copy of the receipt, the media on which Software is
furnished (if any) will be free of defects in materials and
workmanship under normal use. Except for the foregoing,
Software is provided "AS IS". Your exclusive remedy and
Sun's entire liability under this limited warranty will be
at Sun's option to replace Software media or refund the fee
paid for Software. Any implied warranties on the Software
are limited to 90 days. Some states do not allow
limitations on duration of an implied warranty, so the
above may not apply to you. This limited warranty gives you
specific legal rights. You may have others, which vary from
state to state.

5. DISCLAIMER OF WARRANTY. UNLESS SPECIFIED IN THIS
AGREEMENT, ALL EXPRESS OR IMPLIED CONDITIONS,
REPRESENTATIONS AND WARRANTIES, INCLUDING ANY IMPLIED
WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE OR NON-INFRINGEMENT ARE DISCLAIMED, EXCEPT TO THE
EXTENT THAT THESE DISCLAIMERS ARE HELD TO BE LEGALLY
INVALID.

6. LIMITATION OF LIABILITY. TO THE EXTENT NOT PROHIBITED BY
LAW, IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR
ANY LOST REVENUE, PROFIT OR DATA, OR FOR SPECIAL, INDIRECT,
CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER
CAUSED REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT
OF OR RELATED TO THE USE OF OR INABILITY TO USE SOFTWARE,
EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
DAMAGES. In no event will Sun's liability to you, whether
in contract, tort (including negligence), or otherwise,
exceed the amount paid by you for Software under this
Agreement. The foregoing limitations will apply even if the
above stated warranty fails of its essential purpose. Some
states do not allow the exclusion of incidental or
consequential damages, so some of the terms above may not
be applicable to you.

7. TERMINATION. This Agreement is effective until
terminated. You may terminate this Agreement at any time by
destroying all copies of Software. This Agreement will
terminate immediately without notice from Sun if you fail
to comply with any provision of this Agreement. Either
party may terminate this Agreement immediately should any
Software become, or in either party's opinion be likely to
become, the subject of a claim of infringement of any
intellectual property right. Upon Termination, you must
destroy all copies of Software.

8. EXPORT REGULATIONS. All Software and technical data
delivered under this Agreement are subject to US export
control laws and may be subject to export or import
regulations in other countries. You agree to comply
strictly with all such laws and regulations and acknowledge
that you have the responsibility to obtain such licenses to
export, re-export, or import as may be required after
delivery to you.

9. TRADEMARKS AND LOGOS. You acknowledge and agree as
between you and Sun that Sun owns the SUN, SOLARIS, JAVA,
JINI, FORTE, and iPLANET trademarks and all SUN, SOLARIS,
JAVA, JINI, FORTE, and iPLANET-related trademarks, service
marks, logos and other brand designations ("Sun Marks"),
and you agree to comply with the Sun Trademark and Logo
Usage Requirements currently located at
http://www.sun.com/policies/trademarks. Any use you make of
the Sun Marks inures to Sun's benefit.

10. U.S. GOVERNMENT RESTRICTED RIGHTS. If Software is being
acquired by or on behalf of the U.S. Government or by a
U.S. Government prime contractor or subcontractor (at any
tier), then the Government's rights in Software and
accompanying documentation will be only as set forth in
this Agreement; this is in accordance with 48 CFR 227.7201
through 227.7202-4 (for Department of Defense (DOD)
acquisitions) and with 48 CFR 2.101 and 12.212 (for non-DOD
acquisitions).

11. GOVERNING LAW. Any action related to this Agreement
will be governed by California law and controlling U.S.
federal law. No choice of law rules of any jurisdiction
will apply.

12. SEVERABILITY. If any provision of this Agreement is
held to be unenforceable, this Agreement will remain in
effect with the provision omitted, unless omission would
frustrate the intent of the parties, in which case this
Agreement will immediately terminate.

13. INTEGRATION. This Agreement is the entire agreement
between you and Sun relating to its subject matter. It
supersedes all prior or contemporaneous oral or written
communications, proposals, representations and warranties
and prevails over any conflicting or additional terms of
any quote, order, acknowledgment, or other communication
between the parties relating to its subject matter during
the term of this Agreement. No modification of this
Agreement will be binding, unless in writing and signed by
an authorized representative of each party.

SUPPLEMENTAL LICENSE TERMS

These Supplemental License Terms add to or modify the terms
of the Binary Code License Agreement. Capitalized terms not
defined in these Supplemental Terms shall have the same
meanings ascribed to them in the Binary Code License
Agreement . These Supplemental Terms shall supersede any
inconsistent or conflicting terms in the Binary Code
License Agreement, or in any license contained within the
Software.

A. Software Internal Use and Development License Grant.
Subject to the terms and conditions of this Agreement and
restrictions and exceptions set forth in the Software
"README" file incorporated herein by reference, including,
but not limited to the Java Technology Restrictions of
these Supplemental Terms, Sun grants you a non-exclusive,
non-transferable, limited license without fees to reproduce
internally and use internally the Software complete and
unmodified for the purpose of designing, developing, and
testing your Programs.

B. License to Distribute Software. Subject to the terms and
conditions of this Agreement and restrictions and
exceptions set forth in the Software README file,
including, but not limited to the Java Technology
Restrictions of these Supplemental Terms, Sun grants you a
non-exclusive, non-transferable, limited license without
fees to reproduce and distribute the Software, provided
that (i) you distribute the Software complete and
unmodified and only bundled as part of, and for the sole
purpose of running, your Programs, (ii) the Programs add
significant and primary functionality to the Software,
(iii) you do not distribute additional software intended to
replace any component(s) of the Software, (iv) you do not
remove or alter any proprietary legends or notices
contained in the Software, (v) you only distribute the
Software subject to a license agreement that protects Sun's
interests consistent with the terms contained in this
Agreement, and (vi) you agree to defend and indemnify Sun
and its licensors from and against any damages, costs,
liabilities, settlement amounts and/or expenses (including
attorneys' fees) incurred in connection with any claim,
lawsuit or action by any third party that arises or results
from the use or distribution of any and all Programs and/or
Software.

C. License to Distribute Redistributables. Subject to the
terms and conditions of this Agreement and restrictions and
exceptions set forth in the Software README file, including
but not limited to the Java Technology Restrictions of
these Supplemental Terms, Sun grants you a non-exclusive,
non-transferable, limited license without fees to reproduce
and distribute those files specifically identified as
redistributable in the Software "README" file
("Redistributables") provided that: (i) you distribute the
Redistributables complete and unmodified, and only bundled
as part of Programs, (ii) the Programs add significant and
primary functionality to the Redistributables, (iii) you do
not distribute additional software intended to supersede
any component(s) of the Redistributables (unless otherwise
specified in the applicable README file), (iv) you do not
remove or alter any proprietary legends or notices
contained in or on the Redistributables, (v) you only
distribute the Redistributables pursuant to a license
agreement that protects Sun's interests consistent with the
terms contained in the Agreement, (vi) you agree to defend
and indemnify Sun and its licensors from and against any
damages, costs, liabilities, settlement amounts and/or
expenses (including attorneys' fees) incurred in connection
with any claim, lawsuit or action by any third party that
arises or results from the use or distribution of any and
all Programs and/or Software.

D. Java Technology Restrictions. You may not create,
modify, or change the behavior of, or authorize your
licensees to create, modify, or change the behavior of,
classes, interfaces, or subpackages that are in any way
identified as "java", "javax", "sun" or similar convention
as specified by Sun in any naming convention designation.

E. Distribution by Publishers. This section pertains to
your distribution of the Software with your printed book or
magazine (as those terms are commonly used in the industry)
relating to Java technology ("Publication"). Subject to and
conditioned upon your compliance with the restrictions and
obligations contained in the Agreement, in addition to the
license granted in Paragraph 1 above, Sun hereby grants to
you a non-exclusive, nontransferable limited right to
reproduce complete and unmodified copies of the Software on
electronic media (the "Media") for the sole purpose of
inclusion and distribution with your Publication(s),
subject to the following terms: (i) You may not distribute
the Software on a stand-alone basis; it must be distributed
with your Publication(s); (ii) You are responsible for
downloading the Software from the applicable Sun web site;
(iii) You must refer to the Software as JavaTM SE
Development Kit 6; (iv) The Software must be reproduced in
its entirety and without any modification whatsoever
(including, without limitation, the Binary Code License and
Supplemental License Terms accompanying the Software and
proprietary rights notices contained in the Software);
(v) The Media label shall include the following
information: Copyright 2006, Sun Microsystems, Inc. All
rights reserved. Use is subject to license terms. Sun, Sun
Microsystems, the Sun logo, Solaris, Java, the Java Coffee
Cup logo, J2SE, and all trademarks and logos based on Java
are trademarks or registered trademarks of Sun
Microsystems, Inc. in the U.S. and other countries. This
information must be placed on the Media label in such a
manner as to only apply to the Sun Software; (vi) You must
clearly identify the Software as Sun's product on the Media
holder or Media label, and you may not state or imply that
Sun is responsible for any third-party software contained
on the Media; (vii) You may not include any third party
software on the Media which is intended to be a replacement
or substitute for the Software; (viii) You shall indemnify
Sun for all damages arising from your failure to comply
with the requirements of this Agreement. In addition, you
shall defend, at your expense, any and all claims brought
against Sun by third parties, and shall pay all damages
awarded by a court of competent jurisdiction, or such
settlement amount negotiated by you, arising out of or in
connection with your use, reproduction or distribution of
the Software and/or the Publication. Your obligation to
provide indemnification under this section shall arise
provided that Sun: (a) provides you prompt notice of the
claim; (b) gives you sole control of the defense and
settlement of the claim; (c) provides you, at your expense,
with all available information, assistance and authority to
defend; and (d) has not compromised or settled such claim
without your prior written consent; and (ix) You shall
provide Sun with a written notice for each Publication;
such notice shall include the following information: (1)
title of Publication, (2) author(s), (3) date of
Publication, and (4) ISBN or ISSN numbers. Such notice
shall be sent to Sun Microsystems, Inc., 4150 Network
Circle, M/S USCA12-110, Santa Clara, California 95054,
U.S.A , Attention: Contracts Administration.

F. Source Code. Software may contain source code that,
unless expressly licensed for other purposes, is provided
solely for reference purposes pursuant to the terms of this
Agreement. Source code may not be redistributed unless
expressly provided for in this Agreement.

G. Third Party Code. Additional copyright notices and
license terms applicable to portions of the Software are
set forth in the THIRDPARTYLICENSEREADME.txt file. In
addition to any terms and conditions of any third party
opensource/freeware license identified in the
THIRDPARTYLICENSEREADME.txt file, the disclaimer of
warranty and limitation of liability provisions in
paragraphs 5 and 6 of the Binary Code License Agreement
shall apply to all Software in this distribution.

H. Termination for Infringement. Either party may terminate
this Agreement immediately should any Software become, or
in either party's opinion be likely to become, the subject
of a claim of infringement of any intellectual property
right.

I. Installation and Auto-Update. The Software's
installation and auto-update processes transmit a limited
amount of data to Sun (or its service provider) about those
specific processes to help Sun understand and optimize
them. Sun does not associate the data with personally
identifiable information. You can find more information
about the data Sun collects at http://java.com/data/.

For inquiries please contact: Sun Microsystems, Inc., 4150
Network Circle, Santa Clara, California 95054, U.S.A.

Do you agree to the above license terms? [yes or no]
yes
Unpacking...
Checksumming...
Extracting...
UnZipSFX 5.50 of 17 February 2002, by Info-ZIP (Zip-Bugs@lists.wku.edu).
inflating: jdk-6u7-linux-i586.rpm
inflating: sun-javadb-common-10.3.1-4.1.i386.rpm
inflating: sun-javadb-core-10.3.1-4.1.i386.rpm
inflating: sun-javadb-client-10.3.1-4.1.i386.rpm
inflating: sun-javadb-demo-10.3.1-4.1.i386.rpm
inflating: sun-javadb-docs-10.3.1-4.1.i386.rpm
inflating: sun-javadb-javadoc-10.3.1-4.1.i386.rpm
Preparing... ########################################### [100%]
1:jdk ########################################### [100%]
Unpacking JAR files...
rt.jar...
jsse.jar...
charsets.jar...
tools.jar...
localedata.jar...
plugin.jar...
javaws.jar...
deploy.jar...
Installing JavaDB
Preparing... ########################################### [100%]
1:sun-javadb-common ########################################### [ 17%]
2:sun-javadb-core ########################################### [ 33%]
3:sun-javadb-client ########################################### [ 50%]
4:sun-javadb-demo ########################################### [ 67%]
5:sun-javadb-docs ########################################### [ 83%]
6:sun-javadb-javadoc ########################################### [100%]

Java(TM) SE Development Kit 6 successfully installed.

Product Registration is FREE and includes many benefits:
* Notification of new versions, patches, and updates
* Special offers on Sun products, services and training
* Access to early releases and documentation

Product and system data will be collected. If your configuration
supports a browser, the Sun Product Registration form for
the JDK will be presented. If you do not register, none of
this information will be saved. You may also register your
JDK later by opening the register.html file (located in
the JDK installation directory) in a browser.

For more information on what data Registration collects and
how it is managed and used, see:
http://java.sun.com/javase/registration/JDKRegistrationPrivacy.html

Press Enter to continue.....

Done.
檢查一下目前安裝的 JAVA 吧:
[root@KHXPROVS1 opt]# rpm -qa|grep java
sun-javadb-demo-10.3.1-4.1
sun-javadb-common-10.3.1-4.1
java-1.4.2-gcj-compat-1.4.2.0-27jpp
sun-javadb-core-10.3.1-4.1
sun-javadb-javadoc-10.3.1-4.1
db4-java-4.2.52-7.1
gcc4-java-4.1.1-53.EL4
java-1.4.2-gcj-compat-devel-1.4.2.0-27jpp
sun-javadb-client-10.3.1-4.1
gcc-java-3.4.6-8
sun-javadb-docs-10.3.1-4.1
而 JDK 會被安裝到 /usr/java/jdk1.6.0_07 底下:其中 /usr/java/jdk1.6.0_07/jre 便是 Java Runtime Environment 的安裝路徑喔。
[root@KHXPROVS1 opt]# ls -alrt /usr/java/
total 16
drwxr-xr-x 15 root root 4096 Sep 4 09:39 ..
lrwxrwxrwx 1 root root 21 Sep 4 09:40 latest -> /usr/java/jdk1.6.0_07
drwxr-xr-x 9 root root 4096 Sep 4 09:40 jdk1.6.0_07
lrwxrwxrwx 1 root root 16 Sep 4 09:40 default -> /usr/java/latest
drwxr-xr-x 3 root root 4096 Sep 4 09:40 .
[root@KHXPROVS1 ~]# ls -al /usr/java/jdk1.6.0_07
total 18660
drwxr-xr-x 9 root root 4096 Sep 4 09:40 .
drwxr-xr-x 3 root root 4096 Sep 11 13:26 ..
drwxr-xr-x 2 root root 4096 Sep 4 09:39 bin
-rw-r--r-- 1 root root 4137 Jun 10 16:54 COPYRIGHT
drwxr-xr-x 10 root root 4096 Sep 4 09:39 demo
drwxr-xr-x 3 root root 4096 Sep 4 09:39 include
drwxr-xr-x 6 root root 4096 Sep 4 09:39 jre
drwxr-xr-x 3 root root 4096 Sep 4 11:15 lib
-rw-r--r-- 1 root root 17058 Jun 10 16:54 LICENSE
drwxr-xr-x 4 root root 4096 Sep 4 09:39 man
-rw-r--r-- 1 root root 28599 Jun 10 16:54 README.html
-rw-r--r-- 1 root root 24132 Jun 10 16:54 README_ja.html
-rw-r--r-- 1 root root 18329 Jun 10 16:54 README_zh_CN.html
-r--r--r-- 1 root root 5134 Sep 4 09:40 register.html
-r--r--r-- 1 root root 5566 Sep 4 09:40 register_ja.html
-r--r--r-- 1 root root 4744 Sep 4 09:40 register_zh_CN.html
drwxr-xr-x 9 root root 4096 Sep 4 09:39 sample
-rw-r--r-- 1 root root 18719895 Jun 10 16:54 src.zip
-rw-r--r-- 1 root root 190102 Jun 10 16:54 THIRDPARTYLICENSEREADME.txt
[root@KHXPROVS1 ~]#

如果你和我一樣沒有 Sun JDK 的 JPackage Java compatibility package,那麼就到 RepoView: Scientific Linux Fermi Testing 5rolling x86_64 或者到 FileWatcher 去下載 java-1.6.0-sun-compat-1.6.0.07-1jpp.i586.rpm (60.32 KB) 吧。一樣的,下載完後將檔案 ftp 到實作機的 /opt 去,然後安裝:
[root@KHXPROVS1 opt]# ls -al
total 292796
drwxr-xr-x 5 root root 4096 Sep 4 11:09 .
drwxr-xr-x 25 root root 4096 Sep 4 10:43 ..
drwxrwxrwx 8 501 501 4096 Jul 1 14:36 iperf-2.0.4
-rw-r--r-- 1 root root 248493 Jul 1 14:35 iperf-2.0.4.tar.gz
-rw-r--r-- 1 root root 61764 Sep 4 11:09 java-1.6.0-sun-compat-1.6.0.07-1jpp.i586.rpm
-rw-r--r-- 1 root root 65414959 Jun 10 18:38 jdk-6u7-linux-i586.rpm
-rwxr-xr-x 1 root root 74397909 Sep 4 09:37 jdk-6u7-linux-i586-rpm.bin
-rw-r--r-- 1 root root 19463427 Jun 10 18:36 jre-6u7-linux-i586.rpm
-rwxr-xr-x 1 root root 19216086 Sep 4 10:31 jre-6u7-linux-i586-rpm.bin
drwx------ 2 root root 16384 Jun 25 22:22 lost+found
drwxr-xr-x 3 root root 4096 Sep 4 09:40 sun
-rw-r--r-- 1 root root 463678 Aug 20 2007 sun-javadb-client-10.3.1-4.1.i386.rpm
-rw-r--r-- 1 root root 62801 Aug 20 2007 sun-javadb-common-10.3.1-4.1.i386.rpm
-rw-r--r-- 1 root root 3655834 Aug 20 2007 sun-javadb-core-10.3.1-4.1.i386.rpm
-rw-r--r-- 1 root root 996942 Aug 20 2007 sun-javadb-demo-10.3.1-4.1.i386.rpm
-rw-r--r-- 1 root root 4290799 Aug 20 2007 sun-javadb-docs-10.3.1-4.1.i386.rpm
-rw-r--r-- 1 root root 123721 Aug 20 2007 sun-javadb-javadoc-10.3.1-4.1.i386.rpm
[root@KHXPROVS1 opt]# rpm -Uvh java-1.6.0-sun-compat-1.6.0.07-1jpp.i586.rpm
warning: java-1.6.0-sun-compat-1.6.0.07-1jpp.i586.rpm: V3 DSA signature: NOKEY, key ID 82fd17b2
Preparing... ########################################### [100%]
1:java-1.6.0-sun-compat ########################################### [100%]
檢查一下 java-1.6.0-sun-compat-1.6.0.07-1jpp 有出現在 rpm installation list 裡面:
[root@KHXPROVS1 opt]# rpm -qa |grep java
sun-javadb-demo-10.3.1-4.1
sun-javadb-common-10.3.1-4.1
java-1.4.2-gcj-compat-1.4.2.0-27jpp
sun-javadb-core-10.3.1-4.1
sun-javadb-javadoc-10.3.1-4.1
db4-java-4.2.52-7.1
gcc4-java-4.1.1-53.EL4
java-1.4.2-gcj-compat-devel-1.4.2.0-27jpp
sun-javadb-client-10.3.1-4.1
java-1.6.0-sun-compat-1.6.0.07-1jpp
gcc-java-3.4.6-8
sun-javadb-docs-10.3.1-4.1
接下來檢查一下目前系統使用的 JAVA 版本:
[root@KHXPROVS1 opt]# java -version
java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
Java HotSpot(TM) Server VM (build 10.0-b23, mixed mode)
確認一下目前的系統是設定最後版本為 default JAVA, run 下面的 command: (應該會看到目前系統有兩個可用的 Java 程式, 如下所示)
[root@KHXPROVS1 opt]# alternatives --config java

There are 2 programs which provide 'java'.

Selection Command
-----------------------------------------------
1 /usr/lib/jvm/jre-1.4.2-gcj/bin/java
*+ 2 /usr/lib/jvm/jre-1.6.0-sun/bin/java

Enter to keep the current selection[+], or type selection number:
[root@KHXPROVS1 opt]#
如果在 number 2 之前有看到 *+, 那就ok,直接按 Enter 就好。不過如果你的運氣不好,是 1 被選到,那麼 type 2 並按 Enter 改為使用最後版本。

JDK 安裝到這裡算是 ok 了,接下來是設定環境變數,可以用 export 命令直接在 shell 下設置,但只針對當前的 shell 有效,因此我們直接去修改 .bashrc 文件吧:
[root@KHXPROVS1 opt]# vi ~/.bashrc
# .bashrc

# User specific aliases and functions

alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
alias vi='vim'

TERM=xterm-color; export TERM;

# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi

export JAVA_HOME=/usr/java/jdk1.6.0_07
export PATH=$PATH:$JAVA_HOME/bin
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
~
存檔然後離開這個 shell 再進來一次:
[root@KHXPROVS1 opt]# exit
logout
測試一下剛剛的環境變數:
[root@KHXPROVS1 ~]# echo $JAVA_HOME
/usr/java/jdk1.6.0_07
[root@KHXPROVS1 ~]# echo $CLASSPATH
.:/usr/java/jdk1.6.0_07/lib/dt.jar:/usr/java/jdk1.6.0_07/lib/tools.jar
[root@KHXPROVS1 ~]# echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/java/jdk1.6.0_07/bin:/root/bin
[root@KHXPROVS1 ~]#
接著是 Apache Tomcat 的安裝部分了,首先我們到 Apache Tomcat 的官方網站去,點選左邊 download 的一個版本,這裡選擇的是 tomcat6.x:
進去後選 Binary Distributions 下的 tar.gz (pgp, md5) 來下載 Apache Tomcat v6.0.18。

下載完後將 apache-tomcat-6.0.18.tar.gz 上傳到測試機器的 /opt 下:
[root@KHXPROVS1 opt]# cd /opt
[root@KHXPROVS1 opt]# ls -al
total 292796
drwxr-xr-x 5 root root 4096 Sep 4 11:09 .
drwxr-xr-x 25 root root 4096 Sep 4 10:43 ..
-rw-r--r-- 1 root root 6142197 Sep 3 19:04 apache-tomcat-6.0.18.tar.gz
drwxrwxrwx 8 501 501 4096 Jul 1 14:36 iperf-2.0.4
-rw-r--r-- 1 root root 248493 Jul 1 14:35 iperf-2.0.4.tar.gz
-rw-r--r-- 1 root root 61764 Sep 4 11:09 java-1.6.0-sun-compat-1.6.0.07-1jpp.i586.rpm
-rw-r--r-- 1 root root 65414959 Jun 10 18:38 jdk-6u7-linux-i586.rpm
-rwxr-xr-x 1 root root 74397909 Sep 4 09:37 jdk-6u7-linux-i586-rpm.bin
-rw-r--r-- 1 root root 19463427 Jun 10 18:36 jre-6u7-linux-i586.rpm
-rwxr-xr-x 1 root root 19216086 Sep 4 10:31 jre-6u7-linux-i586-rpm.bin
drwx------ 2 root root 16384 Jun 25 22:22 lost+found
drwxr-xr-x 3 root root 4096 Sep 4 09:40 sun
-rw-r--r-- 1 root root 463678 Aug 20 2007 sun-javadb-client-10.3.1-4.1.i386.rpm
-rw-r--r-- 1 root root 62801 Aug 20 2007 sun-javadb-common-10.3.1-4.1.i386.rpm
-rw-r--r-- 1 root root 3655834 Aug 20 2007 sun-javadb-core-10.3.1-4.1.i386.rpm
-rw-r--r-- 1 root root 996942 Aug 20 2007 sun-javadb-demo-10.3.1-4.1.i386.rpm
-rw-r--r-- 1 root root 4290799 Aug 20 2007 sun-javadb-docs-10.3.1-4.1.i386.rpm
-rw-r--r-- 1 root root 123721 Aug 20 2007 sun-javadb-javadoc-10.3.1-4.1.i386.rpm
接下來安裝的話直接解壓縮就可以了:(目前預計要安裝的路徑為 /opt/ 喔)
[root@KHXPROVS1 opt]# tar zxvf apache-tomcat-6.0.18.tar.gz
apache-tomcat-6.0.18/bin/catalina.sh
apache-tomcat-6.0.18/bin/digest.sh
apache-tomcat-6.0.18/bin/setclasspath.sh
apache-tomcat-6.0.18/bin/shutdown.sh
apache-tomcat-6.0.18/bin/startup.sh
apache-tomcat-6.0.18/bin/tool-wrapper.sh
apache-tomcat-6.0.18/bin/version.sh
apache-tomcat-6.0.18/conf/
apache-tomcat-6.0.18/conf/catalina.policy
apache-tomcat-6.0.18/conf/catalina.properties
apache-tomcat-6.0.18/conf/context.xml
apache-tomcat-6.0.18/conf/logging.properties
apache-tomcat-6.0.18/conf/server.xml
apache-tomcat-6.0.18/conf/tomcat-users.xml
apache-tomcat-6.0.18/conf/web.xml
apache-tomcat-6.0.18/bin/
apache-tomcat-6.0.18/lib/
apache-tomcat-6.0.18/logs/
apache-tomcat-6.0.18/temp/
apache-tomcat-6.0.18/webapps/
apache-tomcat-6.0.18/webapps/ROOT/
apache-tomcat-6.0.18/webapps/ROOT/WEB-INF/
apache-tomcat-6.0.18/webapps/docs/
apache-tomcat-6.0.18/webapps/docs/WEB-INF/
apache-tomcat-6.0.18/webapps/docs/api/
apache-tomcat-6.0.18/webapps/docs/appdev/
apache-tomcat-6.0.18/webapps/docs/appdev/printer/
apache-tomcat-6.0.18/webapps/docs/appdev/printer/docs/
apache-tomcat-6.0.18/webapps/docs/appdev/printer/docs/appdev/
apache-tomcat-6.0.18/webapps/docs/appdev/sample/
apache-tomcat-6.0.18/webapps/docs/appdev/sample/docs/
apache-tomcat-6.0.18/webapps/docs/appdev/sample/src/
apache-tomcat-6.0.18/webapps/docs/appdev/sample/src/mypackage/
apache-tomcat-6.0.18/webapps/docs/appdev/sample/web/
apache-tomcat-6.0.18/webapps/docs/appdev/sample/web/WEB-INF/
apache-tomcat-6.0.18/webapps/docs/appdev/sample/web/images/
apache-tomcat-6.0.18/webapps/docs/architecture/
apache-tomcat-6.0.18/webapps/docs/architecture/printer/
apache-tomcat-6.0.18/webapps/docs/architecture/requestProcess/
apache-tomcat-6.0.18/webapps/docs/architecture/startup/
apache-tomcat-6.0.18/webapps/docs/config/
apache-tomcat-6.0.18/webapps/docs/config/printer/
apache-tomcat-6.0.18/webapps/docs/funcspecs/
apache-tomcat-6.0.18/webapps/docs/funcspecs/printer/
apache-tomcat-6.0.18/webapps/docs/images/
apache-tomcat-6.0.18/webapps/docs/printer/
apache-tomcat-6.0.18/webapps/docs/tribes/
apache-tomcat-6.0.18/webapps/examples/
apache-tomcat-6.0.18/webapps/examples/WEB-INF/
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/cal/
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/chat/
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/checkbox/
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/colors/
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/compressionFilters/
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/dates/
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/error/
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/examples/
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/filters/
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/jsp2/
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/jsp2/examples/
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/jsp2/examples/el/
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/jsp2/examples/simpletag/
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/listeners/
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/num/
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/sessions/
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/util/
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/validators/
apache-tomcat-6.0.18/webapps/examples/WEB-INF/jsp/
apache-tomcat-6.0.18/webapps/examples/WEB-INF/jsp/applet/
apache-tomcat-6.0.18/webapps/examples/WEB-INF/jsp2/
apache-tomcat-6.0.18/webapps/examples/WEB-INF/lib/
apache-tomcat-6.0.18/webapps/examples/WEB-INF/tags/
apache-tomcat-6.0.18/webapps/examples/jsp/
apache-tomcat-6.0.18/webapps/examples/jsp/cal/
apache-tomcat-6.0.18/webapps/examples/jsp/chat/
apache-tomcat-6.0.18/webapps/examples/jsp/checkbox/
apache-tomcat-6.0.18/webapps/examples/jsp/colors/
apache-tomcat-6.0.18/webapps/examples/jsp/dates/
apache-tomcat-6.0.18/webapps/examples/jsp/error/
apache-tomcat-6.0.18/webapps/examples/jsp/forward/
apache-tomcat-6.0.18/webapps/examples/jsp/images/
apache-tomcat-6.0.18/webapps/examples/jsp/include/
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/el/
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/jspattribute/
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/jspx/
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/misc/
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/simpletag/
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/tagfiles/
apache-tomcat-6.0.18/webapps/examples/jsp/jsptoserv/
apache-tomcat-6.0.18/webapps/examples/jsp/num/
apache-tomcat-6.0.18/webapps/examples/jsp/plugin/
apache-tomcat-6.0.18/webapps/examples/jsp/plugin/applet/
apache-tomcat-6.0.18/webapps/examples/jsp/security/
apache-tomcat-6.0.18/webapps/examples/jsp/security/protected/
apache-tomcat-6.0.18/webapps/examples/jsp/sessions/
apache-tomcat-6.0.18/webapps/examples/jsp/simpletag/
apache-tomcat-6.0.18/webapps/examples/jsp/snp/
apache-tomcat-6.0.18/webapps/examples/jsp/tagplugin/
apache-tomcat-6.0.18/webapps/examples/jsp/xml/
apache-tomcat-6.0.18/webapps/examples/servlets/
apache-tomcat-6.0.18/webapps/examples/servlets/images/
apache-tomcat-6.0.18/webapps/host-manager/
apache-tomcat-6.0.18/webapps/host-manager/META-INF/
apache-tomcat-6.0.18/webapps/host-manager/WEB-INF/
apache-tomcat-6.0.18/webapps/host-manager/images/
apache-tomcat-6.0.18/webapps/manager/
apache-tomcat-6.0.18/webapps/manager/META-INF/
apache-tomcat-6.0.18/webapps/manager/WEB-INF/
apache-tomcat-6.0.18/webapps/manager/images/
apache-tomcat-6.0.18/work/
apache-tomcat-6.0.18/LICENSE
apache-tomcat-6.0.18/NOTICE
apache-tomcat-6.0.18/RELEASE-NOTES
apache-tomcat-6.0.18/RUNNING.txt
apache-tomcat-6.0.18/bin/bootstrap.jar
apache-tomcat-6.0.18/bin/catalina-tasks.xml
apache-tomcat-6.0.18/bin/catalina.bat
apache-tomcat-6.0.18/bin/commons-daemon.jar
apache-tomcat-6.0.18/bin/cpappend.bat
apache-tomcat-6.0.18/bin/digest.bat
apache-tomcat-6.0.18/bin/jsvc.tar.gz
apache-tomcat-6.0.18/bin/service.bat
apache-tomcat-6.0.18/bin/setclasspath.bat
apache-tomcat-6.0.18/bin/shutdown.bat
apache-tomcat-6.0.18/bin/startup.bat
apache-tomcat-6.0.18/bin/tomcat-juli.jar
apache-tomcat-6.0.18/bin/tomcat-native.tar.gz
apache-tomcat-6.0.18/bin/tomcat6.exe
apache-tomcat-6.0.18/bin/tomcat6w.exe
apache-tomcat-6.0.18/bin/tool-wrapper.bat
apache-tomcat-6.0.18/bin/version.bat
apache-tomcat-6.0.18/lib/annotations-api.jar
apache-tomcat-6.0.18/lib/catalina-ant.jar
apache-tomcat-6.0.18/lib/catalina-ha.jar
apache-tomcat-6.0.18/lib/catalina-tribes.jar
apache-tomcat-6.0.18/lib/catalina.jar
apache-tomcat-6.0.18/lib/el-api.jar
apache-tomcat-6.0.18/lib/jasper-el.jar
apache-tomcat-6.0.18/lib/jasper-jdt.jar
apache-tomcat-6.0.18/lib/jasper.jar
apache-tomcat-6.0.18/lib/jsp-api.jar
apache-tomcat-6.0.18/lib/servlet-api.jar
apache-tomcat-6.0.18/lib/tomcat-coyote.jar
apache-tomcat-6.0.18/lib/tomcat-dbcp.jar
apache-tomcat-6.0.18/lib/tomcat-i18n-es.jar
apache-tomcat-6.0.18/lib/tomcat-i18n-fr.jar
apache-tomcat-6.0.18/lib/tomcat-i18n-ja.jar
apache-tomcat-6.0.18/temp/safeToDelete.tmp
apache-tomcat-6.0.18/webapps/ROOT/RELEASE-NOTES.txt
apache-tomcat-6.0.18/webapps/ROOT/WEB-INF/web.xml
apache-tomcat-6.0.18/webapps/ROOT/asf-logo-wide.gif
apache-tomcat-6.0.18/webapps/ROOT/build.xml
apache-tomcat-6.0.18/webapps/ROOT/favicon.ico
apache-tomcat-6.0.18/webapps/ROOT/index.html
apache-tomcat-6.0.18/webapps/ROOT/index.jsp
apache-tomcat-6.0.18/webapps/ROOT/tomcat-power.gif
apache-tomcat-6.0.18/webapps/ROOT/tomcat.gif
apache-tomcat-6.0.18/webapps/ROOT/tomcat.svg
apache-tomcat-6.0.18/webapps/docs/BUILDING.txt
apache-tomcat-6.0.18/webapps/docs/NOTICE
apache-tomcat-6.0.18/webapps/docs/RELEASE-NOTES.txt
apache-tomcat-6.0.18/webapps/docs/RUNNING.txt
apache-tomcat-6.0.18/webapps/docs/WEB-INF/web.xml
apache-tomcat-6.0.18/webapps/docs/aio.html
apache-tomcat-6.0.18/webapps/docs/api/index.html
apache-tomcat-6.0.18/webapps/docs/appdev/build.xml.txt
apache-tomcat-6.0.18/webapps/docs/appdev/deployment.html
apache-tomcat-6.0.18/webapps/docs/appdev/index.html
apache-tomcat-6.0.18/webapps/docs/appdev/installation.html
apache-tomcat-6.0.18/webapps/docs/appdev/introduction.html
apache-tomcat-6.0.18/webapps/docs/appdev/printer/deployment.html
apache-tomcat-6.0.18/webapps/docs/appdev/printer/docs/appdev/build.xml.txt
apache-tomcat-6.0.18/webapps/docs/appdev/printer/docs/appdev/web.xml.txt
apache-tomcat-6.0.18/webapps/docs/appdev/printer/index.html
apache-tomcat-6.0.18/webapps/docs/appdev/printer/installation.html
apache-tomcat-6.0.18/webapps/docs/appdev/printer/introduction.html
apache-tomcat-6.0.18/webapps/docs/appdev/printer/processes.html
apache-tomcat-6.0.18/webapps/docs/appdev/printer/source.html
apache-tomcat-6.0.18/webapps/docs/appdev/processes.html
apache-tomcat-6.0.18/webapps/docs/appdev/sample/build.xml
apache-tomcat-6.0.18/webapps/docs/appdev/sample/docs/README.txt
apache-tomcat-6.0.18/webapps/docs/appdev/sample/index.html
apache-tomcat-6.0.18/webapps/docs/appdev/sample/sample.war
apache-tomcat-6.0.18/webapps/docs/appdev/sample/src/mypackage/Hello.java
apache-tomcat-6.0.18/webapps/docs/appdev/sample/web/WEB-INF/web.xml
apache-tomcat-6.0.18/webapps/docs/appdev/sample/web/hello.jsp
apache-tomcat-6.0.18/webapps/docs/appdev/sample/web/images/tomcat.gif
apache-tomcat-6.0.18/webapps/docs/appdev/sample/web/index.html
apache-tomcat-6.0.18/webapps/docs/appdev/source.html
apache-tomcat-6.0.18/webapps/docs/appdev/web.xml.txt
apache-tomcat-6.0.18/webapps/docs/apr.html
apache-tomcat-6.0.18/webapps/docs/architecture/index.html
apache-tomcat-6.0.18/webapps/docs/architecture/overview.html
apache-tomcat-6.0.18/webapps/docs/architecture/printer/index.html
apache-tomcat-6.0.18/webapps/docs/architecture/printer/overview.html
apache-tomcat-6.0.18/webapps/docs/architecture/printer/requestProcess.html
apache-tomcat-6.0.18/webapps/docs/architecture/printer/startup.html
apache-tomcat-6.0.18/webapps/docs/architecture/requestProcess.html
apache-tomcat-6.0.18/webapps/docs/architecture/requestProcess/requestProcess.pdf
apache-tomcat-6.0.18/webapps/docs/architecture/requestProcess/roseModel.mdl
apache-tomcat-6.0.18/webapps/docs/architecture/startup.html
apache-tomcat-6.0.18/webapps/docs/architecture/startup/serverStartup.pdf
apache-tomcat-6.0.18/webapps/docs/architecture/startup/serverStartup.txt
apache-tomcat-6.0.18/webapps/docs/balancer-howto.html
apache-tomcat-6.0.18/webapps/docs/building.html
apache-tomcat-6.0.18/webapps/docs/cgi-howto.html
apache-tomcat-6.0.18/webapps/docs/changelog.html
apache-tomcat-6.0.18/webapps/docs/class-loader-howto.html
apache-tomcat-6.0.18/webapps/docs/cluster-howto.html
apache-tomcat-6.0.18/webapps/docs/config/ajp.html
apache-tomcat-6.0.18/webapps/docs/config/cluster-channel.html
apache-tomcat-6.0.18/webapps/docs/config/cluster-deployer.html
apache-tomcat-6.0.18/webapps/docs/config/cluster-interceptor.html
apache-tomcat-6.0.18/webapps/docs/config/cluster-listener.html
apache-tomcat-6.0.18/webapps/docs/config/cluster-manager.html
apache-tomcat-6.0.18/webapps/docs/config/cluster-membership.html
apache-tomcat-6.0.18/webapps/docs/config/cluster-receiver.html
apache-tomcat-6.0.18/webapps/docs/config/cluster-sender.html
apache-tomcat-6.0.18/webapps/docs/config/cluster-valve.html
apache-tomcat-6.0.18/webapps/docs/config/cluster.html
apache-tomcat-6.0.18/webapps/docs/config/context.html
apache-tomcat-6.0.18/webapps/docs/config/engine.html
apache-tomcat-6.0.18/webapps/docs/config/executor.html
apache-tomcat-6.0.18/webapps/docs/config/globalresources.html
apache-tomcat-6.0.18/webapps/docs/config/host.html
apache-tomcat-6.0.18/webapps/docs/config/http.html
apache-tomcat-6.0.18/webapps/docs/config/index.html
apache-tomcat-6.0.18/webapps/docs/config/loader.html
apache-tomcat-6.0.18/webapps/docs/config/manager.html
apache-tomcat-6.0.18/webapps/docs/config/printer/ajp.html
apache-tomcat-6.0.18/webapps/docs/config/printer/cluster-channel.html
apache-tomcat-6.0.18/webapps/docs/config/printer/cluster-deployer.html
apache-tomcat-6.0.18/webapps/docs/config/printer/cluster-interceptor.html
apache-tomcat-6.0.18/webapps/docs/config/printer/cluster-listener.html
apache-tomcat-6.0.18/webapps/docs/config/printer/cluster-manager.html
apache-tomcat-6.0.18/webapps/docs/config/printer/cluster-membership.html
apache-tomcat-6.0.18/webapps/docs/config/printer/cluster-receiver.html
apache-tomcat-6.0.18/webapps/docs/config/printer/cluster-sender.html
apache-tomcat-6.0.18/webapps/docs/config/printer/cluster-valve.html
apache-tomcat-6.0.18/webapps/docs/config/printer/cluster.html
apache-tomcat-6.0.18/webapps/docs/config/printer/context.html
apache-tomcat-6.0.18/webapps/docs/config/printer/engine.html
apache-tomcat-6.0.18/webapps/docs/config/printer/executor.html
apache-tomcat-6.0.18/webapps/docs/config/printer/globalresources.html
apache-tomcat-6.0.18/webapps/docs/config/printer/host.html
apache-tomcat-6.0.18/webapps/docs/config/printer/http.html
apache-tomcat-6.0.18/webapps/docs/config/printer/index.html
apache-tomcat-6.0.18/webapps/docs/config/printer/loader.html
apache-tomcat-6.0.18/webapps/docs/config/printer/manager.html
apache-tomcat-6.0.18/webapps/docs/config/printer/realm.html
apache-tomcat-6.0.18/webapps/docs/config/printer/resources.html
apache-tomcat-6.0.18/webapps/docs/config/printer/server.html
apache-tomcat-6.0.18/webapps/docs/config/printer/service.html
apache-tomcat-6.0.18/webapps/docs/config/printer/systemprops.html
apache-tomcat-6.0.18/webapps/docs/config/printer/valve.html
apache-tomcat-6.0.18/webapps/docs/config/realm.html
apache-tomcat-6.0.18/webapps/docs/config/resources.html
apache-tomcat-6.0.18/webapps/docs/config/server.html
apache-tomcat-6.0.18/webapps/docs/config/service.html
apache-tomcat-6.0.18/webapps/docs/config/systemprops.html
apache-tomcat-6.0.18/webapps/docs/config/valve.html
apache-tomcat-6.0.18/webapps/docs/connectors.html
apache-tomcat-6.0.18/webapps/docs/default-servlet.html
apache-tomcat-6.0.18/webapps/docs/deployer-howto.html
apache-tomcat-6.0.18/webapps/docs/developers.html
apache-tomcat-6.0.18/webapps/docs/extras.html
apache-tomcat-6.0.18/webapps/docs/funcspecs/fs-admin-apps.html
apache-tomcat-6.0.18/webapps/docs/funcspecs/fs-admin-objects.html
apache-tomcat-6.0.18/webapps/docs/funcspecs/fs-admin-opers.html
apache-tomcat-6.0.18/webapps/docs/funcspecs/fs-default.html
apache-tomcat-6.0.18/webapps/docs/funcspecs/fs-invoker.html
apache-tomcat-6.0.18/webapps/docs/funcspecs/fs-jdbc-realm.html
apache-tomcat-6.0.18/webapps/docs/funcspecs/fs-jndi-realm.html
apache-tomcat-6.0.18/webapps/docs/funcspecs/fs-memory-realm.html
apache-tomcat-6.0.18/webapps/docs/funcspecs/index.html
apache-tomcat-6.0.18/webapps/docs/funcspecs/mbean-names.html
apache-tomcat-6.0.18/webapps/docs/funcspecs/printer/fs-admin-apps.html
apache-tomcat-6.0.18/webapps/docs/funcspecs/printer/fs-admin-objects.html
apache-tomcat-6.0.18/webapps/docs/funcspecs/printer/fs-admin-opers.html
apache-tomcat-6.0.18/webapps/docs/funcspecs/printer/fs-default.html
apache-tomcat-6.0.18/webapps/docs/funcspecs/printer/fs-invoker.html
apache-tomcat-6.0.18/webapps/docs/funcspecs/printer/fs-jdbc-realm.html
apache-tomcat-6.0.18/webapps/docs/funcspecs/printer/fs-jndi-realm.html
apache-tomcat-6.0.18/webapps/docs/funcspecs/printer/fs-memory-realm.html
apache-tomcat-6.0.18/webapps/docs/funcspecs/printer/index.html
apache-tomcat-6.0.18/webapps/docs/funcspecs/printer/mbean-names.html
apache-tomcat-6.0.18/webapps/docs/html-manager-howto.html
apache-tomcat-6.0.18/webapps/docs/images/add.gif
apache-tomcat-6.0.18/webapps/docs/images/asf-logo.gif
apache-tomcat-6.0.18/webapps/docs/images/code.gif
apache-tomcat-6.0.18/webapps/docs/images/design.gif
apache-tomcat-6.0.18/webapps/docs/images/docs.gif
apache-tomcat-6.0.18/webapps/docs/images/fix.gif
apache-tomcat-6.0.18/webapps/docs/images/printer.gif
apache-tomcat-6.0.18/webapps/docs/images/tomcat.gif
apache-tomcat-6.0.18/webapps/docs/images/tomcat.svg
apache-tomcat-6.0.18/webapps/docs/images/update.gif
apache-tomcat-6.0.18/webapps/docs/images/void.gif
apache-tomcat-6.0.18/webapps/docs/index.html
apache-tomcat-6.0.18/webapps/docs/introduction.html
apache-tomcat-6.0.18/webapps/docs/jasper-howto.html
apache-tomcat-6.0.18/webapps/docs/jndi-datasource-examples-howto.html
apache-tomcat-6.0.18/webapps/docs/jndi-resources-howto.html
apache-tomcat-6.0.18/webapps/docs/logging.html
apache-tomcat-6.0.18/webapps/docs/manager-howto.html
apache-tomcat-6.0.18/webapps/docs/maven-jars.html
apache-tomcat-6.0.18/webapps/docs/mbeans-descriptor-howto.html
apache-tomcat-6.0.18/webapps/docs/monitoring.html
apache-tomcat-6.0.18/webapps/docs/printer/BUILDING.txt
apache-tomcat-6.0.18/webapps/docs/printer/NOTICE
apache-tomcat-6.0.18/webapps/docs/printer/RUNNING.txt
apache-tomcat-6.0.18/webapps/docs/printer/aio.html
apache-tomcat-6.0.18/webapps/docs/printer/apr.html
apache-tomcat-6.0.18/webapps/docs/printer/balancer-howto.html
apache-tomcat-6.0.18/webapps/docs/printer/building.html
apache-tomcat-6.0.18/webapps/docs/printer/cgi-howto.html
apache-tomcat-6.0.18/webapps/docs/printer/changelog.html
apache-tomcat-6.0.18/webapps/docs/printer/class-loader-howto.html
apache-tomcat-6.0.18/webapps/docs/printer/cluster-howto.html
apache-tomcat-6.0.18/webapps/docs/printer/connectors.html
apache-tomcat-6.0.18/webapps/docs/printer/default-servlet.html
apache-tomcat-6.0.18/webapps/docs/printer/deployer-howto.html
apache-tomcat-6.0.18/webapps/docs/printer/developers.html
apache-tomcat-6.0.18/webapps/docs/printer/extras.html
apache-tomcat-6.0.18/webapps/docs/printer/html-manager-howto.html
apache-tomcat-6.0.18/webapps/docs/printer/index.html
apache-tomcat-6.0.18/webapps/docs/printer/introduction.html
apache-tomcat-6.0.18/webapps/docs/printer/jasper-howto.html
apache-tomcat-6.0.18/webapps/docs/printer/jndi-datasource-examples-howto.html
apache-tomcat-6.0.18/webapps/docs/printer/jndi-resources-howto.html
apache-tomcat-6.0.18/webapps/docs/printer/logging.html
apache-tomcat-6.0.18/webapps/docs/printer/manager-howto.html
apache-tomcat-6.0.18/webapps/docs/printer/maven-jars.html
apache-tomcat-6.0.18/webapps/docs/printer/mbeans-descriptor-howto.html
apache-tomcat-6.0.18/webapps/docs/printer/monitoring.html
apache-tomcat-6.0.18/webapps/docs/printer/proxy-howto.html
apache-tomcat-6.0.18/webapps/docs/printer/realm-howto.html
apache-tomcat-6.0.18/webapps/docs/printer/security-manager-howto.html
apache-tomcat-6.0.18/webapps/docs/printer/setup.html
apache-tomcat-6.0.18/webapps/docs/printer/ssi-howto.html
apache-tomcat-6.0.18/webapps/docs/printer/ssl-howto.html
apache-tomcat-6.0.18/webapps/docs/printer/virtual-hosting-howto.html
apache-tomcat-6.0.18/webapps/docs/printer/windows-service-howto.html
apache-tomcat-6.0.18/webapps/docs/proxy-howto.html
apache-tomcat-6.0.18/webapps/docs/realm-howto.html
apache-tomcat-6.0.18/webapps/docs/security-manager-howto.html
apache-tomcat-6.0.18/webapps/docs/setup.html
apache-tomcat-6.0.18/webapps/docs/ssi-howto.html
apache-tomcat-6.0.18/webapps/docs/ssl-howto.html
apache-tomcat-6.0.18/webapps/docs/tribes/faq.html
apache-tomcat-6.0.18/webapps/docs/tribes/introduction.html
apache-tomcat-6.0.18/webapps/docs/tribes/setup.html
apache-tomcat-6.0.18/webapps/docs/virtual-hosting-howto.html
apache-tomcat-6.0.18/webapps/docs/windows-service-howto.html
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/CookieExample.class
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/CookieExample.java
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/HelloWorldExample.class
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/HelloWorldExample.java
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/LocalStrings.properties
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/LocalStrings_en.properties
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/LocalStrings_es.properties
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/LocalStrings_fr.properties
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/LocalStrings_pt.properties
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/RequestHeaderExample.class
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/RequestHeaderExample.java
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/RequestInfoExample.class
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/RequestInfoExample.java
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/RequestParamExample.class
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/RequestParamExample.java
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/SessionExample.class
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/SessionExample.java
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/cal/Entries.class
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/cal/Entries.java
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/cal/Entry.class
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/cal/Entry.java
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/cal/JspCalendar.class
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/cal/JspCalendar.java
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/cal/TableBean.class
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/cal/TableBean.java
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/chat/ChatServlet$MessageSender.class
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/chat/ChatServlet.class
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/chat/ChatServlet.java
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/checkbox/CheckTest.class
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/checkbox/CheckTest.java
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/colors/ColorGameBean.class
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/colors/ColorGameBean.java
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/compressionFilters/CompressionFilter.class
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/compressionFilters/CompressionFilter.java
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/compressionFilters/CompressionFilterTestServlet.class
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/compressionFilters/CompressionFilterTestServlet.java
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/compressionFilters/CompressionResponseStream.class
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/compressionFilters/CompressionResponseStream.java
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/compressionFilters/CompressionServletResponseWrapper.class
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/compressionFilters/CompressionServletResponseWrapper.java
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/dates/JspCalendar.class
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/dates/JspCalendar.java
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/error/Smart.class
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/error/Smart.java
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/examples/ExampleTagBase.class
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/examples/ExampleTagBase.java
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/examples/FooTag.class
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/examples/FooTag.java
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/examples/FooTagExtraInfo.class
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/examples/FooTagExtraInfo.java
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/examples/LogTag.class
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/examples/LogTag.java
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/examples/ShowSource.class
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/examples/ShowSource.java
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/filters/ExampleFilter.class
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/filters/ExampleFilter.java
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/filters/RequestDumperFilter.class
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/filters/RequestDumperFilter.java
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/filters/SetCharacterEncodingFilter.class
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/filters/SetCharacterEncodingFilter.java
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/jsp2/examples/BookBean.class
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/jsp2/examples/BookBean.java
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/jsp2/examples/FooBean.class
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/jsp2/examples/FooBean.java
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/jsp2/examples/el/Functions.class
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/jsp2/examples/el/Functions.java
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/jsp2/examples/simpletag/EchoAttributesTag.class
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/jsp2/examples/simpletag/EchoAttributesTag.java
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/jsp2/examples/simpletag/FindBookSimpleTag.class
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/jsp2/examples/simpletag/FindBookSimpleTag.java
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/jsp2/examples/simpletag/HelloWorldSimpleTag.class
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/jsp2/examples/simpletag/HelloWorldSimpleTag.java
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/jsp2/examples/simpletag/RepeatSimpleTag.class
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/jsp2/examples/simpletag/RepeatSimpleTag.java
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/jsp2/examples/simpletag/ShuffleSimpleTag.class
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/jsp2/examples/simpletag/ShuffleSimpleTag.java
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/jsp2/examples/simpletag/TileSimpleTag.class
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/jsp2/examples/simpletag/TileSimpleTag.java
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/listeners/ContextListener.class
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/listeners/ContextListener.java
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/listeners/SessionListener.class
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/listeners/SessionListener.java
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/num/NumberGuessBean.class
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/num/NumberGuessBean.java
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/servletToJsp.class
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/servletToJsp.java
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/sessions/DummyCart.class
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/sessions/DummyCart.java
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/util/HTMLFilter.class
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/util/HTMLFilter.java
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/validators/DebugValidator.class
apache-tomcat-6.0.18/webapps/examples/WEB-INF/classes/validators/DebugValidator.java
apache-tomcat-6.0.18/webapps/examples/WEB-INF/jsp/applet/Clock2.java
apache-tomcat-6.0.18/webapps/examples/WEB-INF/jsp/debug-taglib.tld
apache-tomcat-6.0.18/webapps/examples/WEB-INF/jsp/example-taglib.tld
apache-tomcat-6.0.18/webapps/examples/WEB-INF/jsp2/jsp2-example-taglib.tld
apache-tomcat-6.0.18/webapps/examples/WEB-INF/lib/jstl.jar
apache-tomcat-6.0.18/webapps/examples/WEB-INF/lib/standard.jar
apache-tomcat-6.0.18/webapps/examples/WEB-INF/tags/displayProducts.tag
apache-tomcat-6.0.18/webapps/examples/WEB-INF/tags/helloWorld.tag
apache-tomcat-6.0.18/webapps/examples/WEB-INF/tags/panel.tag
apache-tomcat-6.0.18/webapps/examples/WEB-INF/tags/xhtmlbasic.tag
apache-tomcat-6.0.18/webapps/examples/WEB-INF/web.xml
apache-tomcat-6.0.18/webapps/examples/index.html
apache-tomcat-6.0.18/webapps/examples/jsp/cal/Entries.java.html
apache-tomcat-6.0.18/webapps/examples/jsp/cal/Entry.java.html
apache-tomcat-6.0.18/webapps/examples/jsp/cal/JspCalendar.java.html
apache-tomcat-6.0.18/webapps/examples/jsp/cal/TableBean.java.html
apache-tomcat-6.0.18/webapps/examples/jsp/cal/cal1.jsp
apache-tomcat-6.0.18/webapps/examples/jsp/cal/cal1.jsp.html
apache-tomcat-6.0.18/webapps/examples/jsp/cal/cal2.jsp
apache-tomcat-6.0.18/webapps/examples/jsp/cal/cal2.jsp.html
apache-tomcat-6.0.18/webapps/examples/jsp/cal/calendar.html
apache-tomcat-6.0.18/webapps/examples/jsp/cal/login.html
apache-tomcat-6.0.18/webapps/examples/jsp/chat/chat.jsp
apache-tomcat-6.0.18/webapps/examples/jsp/chat/chat.jsp.html
apache-tomcat-6.0.18/webapps/examples/jsp/chat/login.jsp
apache-tomcat-6.0.18/webapps/examples/jsp/chat/login.jsp.html
apache-tomcat-6.0.18/webapps/examples/jsp/chat/post.jsp
apache-tomcat-6.0.18/webapps/examples/jsp/chat/post.jsp.html
apache-tomcat-6.0.18/webapps/examples/jsp/checkbox/CheckTest.html
apache-tomcat-6.0.18/webapps/examples/jsp/checkbox/check.html
apache-tomcat-6.0.18/webapps/examples/jsp/checkbox/checkresult.jsp
apache-tomcat-6.0.18/webapps/examples/jsp/checkbox/checkresult.jsp.html
apache-tomcat-6.0.18/webapps/examples/jsp/checkbox/cresult.html
apache-tomcat-6.0.18/webapps/examples/jsp/colors/ColorGameBean.html
apache-tomcat-6.0.18/webapps/examples/jsp/colors/clr.html
apache-tomcat-6.0.18/webapps/examples/jsp/colors/colors.html
apache-tomcat-6.0.18/webapps/examples/jsp/colors/colrs.jsp
apache-tomcat-6.0.18/webapps/examples/jsp/colors/colrs.jsp.html
apache-tomcat-6.0.18/webapps/examples/jsp/dates/date.html
apache-tomcat-6.0.18/webapps/examples/jsp/dates/date.jsp
apache-tomcat-6.0.18/webapps/examples/jsp/dates/date.jsp.html
apache-tomcat-6.0.18/webapps/examples/jsp/error/er.html
apache-tomcat-6.0.18/webapps/examples/jsp/error/err.jsp
apache-tomcat-6.0.18/webapps/examples/jsp/error/err.jsp.html
apache-tomcat-6.0.18/webapps/examples/jsp/error/error.html
apache-tomcat-6.0.18/webapps/examples/jsp/error/errorpge.jsp
apache-tomcat-6.0.18/webapps/examples/jsp/error/errorpge.jsp.html
apache-tomcat-6.0.18/webapps/examples/jsp/forward/forward.jsp
apache-tomcat-6.0.18/webapps/examples/jsp/forward/forward.jsp.html
apache-tomcat-6.0.18/webapps/examples/jsp/forward/fwd.html
apache-tomcat-6.0.18/webapps/examples/jsp/forward/one.jsp
apache-tomcat-6.0.18/webapps/examples/jsp/forward/one.jsp.html
apache-tomcat-6.0.18/webapps/examples/jsp/forward/two.html
apache-tomcat-6.0.18/webapps/examples/jsp/images/code.gif
apache-tomcat-6.0.18/webapps/examples/jsp/images/execute.gif
apache-tomcat-6.0.18/webapps/examples/jsp/images/read.gif
apache-tomcat-6.0.18/webapps/examples/jsp/images/return.gif
apache-tomcat-6.0.18/webapps/examples/jsp/include/foo.html
apache-tomcat-6.0.18/webapps/examples/jsp/include/foo.jsp
apache-tomcat-6.0.18/webapps/examples/jsp/include/foo.jsp.html
apache-tomcat-6.0.18/webapps/examples/jsp/include/inc.html
apache-tomcat-6.0.18/webapps/examples/jsp/include/include.jsp
apache-tomcat-6.0.18/webapps/examples/jsp/include/include.jsp.html
apache-tomcat-6.0.18/webapps/examples/jsp/index.html
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/el/Functions.java.html
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/el/basic-arithmetic.html
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/el/basic-arithmetic.jsp
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/el/basic-arithmetic.jsp.html
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/el/basic-comparisons.html
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/el/basic-comparisons.jsp
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/el/basic-comparisons.jsp.html
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/el/functions.html
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/el/functions.jsp
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/el/functions.jsp.html
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/el/implicit-objects.html
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/el/implicit-objects.jsp
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/el/implicit-objects.jsp.html
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/jspattribute/FooBean.java.html
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/jspattribute/HelloWorldSimpleTag.java.html
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/jspattribute/ShuffleSimpleTag.java.html
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/jspattribute/TileSimpleTag.java.html
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/jspattribute/jspattribute.html
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/jspattribute/jspattribute.jsp
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/jspattribute/jspattribute.jsp.html
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/jspattribute/shuffle.html
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/jspattribute/shuffle.jsp
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/jspattribute/shuffle.jsp.html
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/jspx/basic.html
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/jspx/basic.jspx
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/jspx/basic.jspx.html
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/jspx/svgexample.html
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/jspx/textRotate.html
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/jspx/textRotate.jpg
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/jspx/textRotate.jspx
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/jspx/textRotate.jspx.html
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/misc/EchoAttributesTag.java.html
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/misc/coda.jspf
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/misc/coda.jspf.html
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/misc/config.html
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/misc/config.jsp
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/misc/config.jsp.html
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/misc/dynamicattrs.html
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/misc/dynamicattrs.jsp
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/misc/dynamicattrs.jsp.html
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/misc/prelude.jspf
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/misc/prelude.jspf.html
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/simpletag/BookBean.java.html
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/simpletag/FindBookSimpleTag.java.html
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/simpletag/Functions.java.html
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/simpletag/HelloWorldSimpleTag.java.html
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/simpletag/RepeatSimpleTag.java.html
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/simpletag/book.html
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/simpletag/book.jsp
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/simpletag/book.jsp.html
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/simpletag/hello.html
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/simpletag/hello.jsp
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/simpletag/hello.jsp.html
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/simpletag/repeat.html
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/simpletag/repeat.jsp
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/simpletag/repeat.jsp.html
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/tagfiles/displayProducts.tag.html
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/tagfiles/hello.html
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/tagfiles/hello.jsp
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/tagfiles/hello.jsp.html
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/tagfiles/helloWorld.tag.html
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/tagfiles/panel.html
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/tagfiles/panel.jsp
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/tagfiles/panel.jsp.html
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/tagfiles/panel.tag.html
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/tagfiles/products.html
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/tagfiles/products.jsp
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/tagfiles/products.jsp.html
apache-tomcat-6.0.18/webapps/examples/jsp/jsp2/tagfiles/xhtmlbasic.tag.html
apache-tomcat-6.0.18/webapps/examples/jsp/jsptoserv/hello.jsp
apache-tomcat-6.0.18/webapps/examples/jsp/jsptoserv/hello.jsp.html
apache-tomcat-6.0.18/webapps/examples/jsp/jsptoserv/jsptoservlet.jsp
apache-tomcat-6.0.18/webapps/examples/jsp/jsptoserv/jsptoservlet.jsp.html
apache-tomcat-6.0.18/webapps/examples/jsp/jsptoserv/jts.html
apache-tomcat-6.0.18/webapps/examples/jsp/jsptoserv/servletToJsp.java.html
apache-tomcat-6.0.18/webapps/examples/jsp/num/numguess.html
apache-tomcat-6.0.18/webapps/examples/jsp/num/numguess.jsp
apache-tomcat-6.0.18/webapps/examples/jsp/num/numguess.jsp.html
apache-tomcat-6.0.18/webapps/examples/jsp/plugin/applet/Clock2.class
apache-tomcat-6.0.18/webapps/examples/jsp/plugin/applet/Clock2.java
apache-tomcat-6.0.18/webapps/examples/jsp/plugin/plugin.html
apache-tomcat-6.0.18/webapps/examples/jsp/plugin/plugin.jsp
apache-tomcat-6.0.18/webapps/examples/jsp/plugin/plugin.jsp.html
apache-tomcat-6.0.18/webapps/examples/jsp/security/protected/error.jsp
apache-tomcat-6.0.18/webapps/examples/jsp/security/protected/error.jsp.html
apache-tomcat-6.0.18/webapps/examples/jsp/security/protected/index.jsp
apache-tomcat-6.0.18/webapps/examples/jsp/security/protected/index.jsp.html
apache-tomcat-6.0.18/webapps/examples/jsp/security/protected/login.jsp
apache-tomcat-6.0.18/webapps/examples/jsp/security/protected/login.jsp.html
apache-tomcat-6.0.18/webapps/examples/jsp/sessions/DummyCart.html
apache-tomcat-6.0.18/webapps/examples/jsp/sessions/carts.html
apache-tomcat-6.0.18/webapps/examples/jsp/sessions/carts.jsp
apache-tomcat-6.0.18/webapps/examples/jsp/sessions/carts.jsp.html
apache-tomcat-6.0.18/webapps/examples/jsp/sessions/crt.html
apache-tomcat-6.0.18/webapps/examples/jsp/simpletag/foo.html
apache-tomcat-6.0.18/webapps/examples/jsp/simpletag/foo.jsp
apache-tomcat-6.0.18/webapps/examples/jsp/simpletag/foo.jsp.html
apache-tomcat-6.0.18/webapps/examples/jsp/snp/snoop.html
apache-tomcat-6.0.18/webapps/examples/jsp/snp/snoop.jsp
apache-tomcat-6.0.18/webapps/examples/jsp/snp/snoop.jsp.html
apache-tomcat-6.0.18/webapps/examples/jsp/source.jsp
apache-tomcat-6.0.18/webapps/examples/jsp/source.jsp.html
apache-tomcat-6.0.18/webapps/examples/jsp/tagplugin/choose.html
apache-tomcat-6.0.18/webapps/examples/jsp/tagplugin/choose.jsp
apache-tomcat-6.0.18/webapps/examples/jsp/tagplugin/choose.jsp.html
apache-tomcat-6.0.18/webapps/examples/jsp/tagplugin/foreach.html
apache-tomcat-6.0.18/webapps/examples/jsp/tagplugin/foreach.jsp
apache-tomcat-6.0.18/webapps/examples/jsp/tagplugin/foreach.jsp.html
apache-tomcat-6.0.18/webapps/examples/jsp/tagplugin/howto.html
apache-tomcat-6.0.18/webapps/examples/jsp/tagplugin/if.html
apache-tomcat-6.0.18/webapps/examples/jsp/tagplugin/if.jsp
apache-tomcat-6.0.18/webapps/examples/jsp/tagplugin/if.jsp.html
apache-tomcat-6.0.18/webapps/examples/jsp/tagplugin/notes.html
apache-tomcat-6.0.18/webapps/examples/jsp/xml/xml.html
apache-tomcat-6.0.18/webapps/examples/jsp/xml/xml.jsp
apache-tomcat-6.0.18/webapps/examples/jsp/xml/xml.jsp.html
apache-tomcat-6.0.18/webapps/examples/servlets/cookies.html
apache-tomcat-6.0.18/webapps/examples/servlets/helloworld.html
apache-tomcat-6.0.18/webapps/examples/servlets/images/code.gif
apache-tomcat-6.0.18/webapps/examples/servlets/images/execute.gif
apache-tomcat-6.0.18/webapps/examples/servlets/images/return.gif
apache-tomcat-6.0.18/webapps/examples/servlets/index.html
apache-tomcat-6.0.18/webapps/examples/servlets/reqheaders.html
apache-tomcat-6.0.18/webapps/examples/servlets/reqinfo.html
apache-tomcat-6.0.18/webapps/examples/servlets/reqparams.html
apache-tomcat-6.0.18/webapps/examples/servlets/sessions.html
apache-tomcat-6.0.18/webapps/host-manager/META-INF/context.xml
apache-tomcat-6.0.18/webapps/host-manager/WEB-INF/web.xml
apache-tomcat-6.0.18/webapps/host-manager/images/add.gif
apache-tomcat-6.0.18/webapps/host-manager/images/asf-logo.gif
apache-tomcat-6.0.18/webapps/host-manager/images/code.gif
apache-tomcat-6.0.18/webapps/host-manager/images/design.gif
apache-tomcat-6.0.18/webapps/host-manager/images/docs.gif
apache-tomcat-6.0.18/webapps/host-manager/images/fix.gif
apache-tomcat-6.0.18/webapps/host-manager/images/tomcat.gif
apache-tomcat-6.0.18/webapps/host-manager/images/update.gif
apache-tomcat-6.0.18/webapps/host-manager/images/void.gif
apache-tomcat-6.0.18/webapps/host-manager/manager.xml
apache-tomcat-6.0.18/webapps/manager/401.jsp
apache-tomcat-6.0.18/webapps/manager/META-INF/context.xml
apache-tomcat-6.0.18/webapps/manager/WEB-INF/web.xml
apache-tomcat-6.0.18/webapps/manager/images/add.gif
apache-tomcat-6.0.18/webapps/manager/images/asf-logo.gif
apache-tomcat-6.0.18/webapps/manager/images/code.gif
apache-tomcat-6.0.18/webapps/manager/images/design.gif
apache-tomcat-6.0.18/webapps/manager/images/docs.gif
apache-tomcat-6.0.18/webapps/manager/images/fix.gif
apache-tomcat-6.0.18/webapps/manager/images/tomcat.gif
apache-tomcat-6.0.18/webapps/manager/images/update.gif
apache-tomcat-6.0.18/webapps/manager/images/void.gif
apache-tomcat-6.0.18/webapps/manager/sessionDetail.jsp
apache-tomcat-6.0.18/webapps/manager/sessionsList.jsp
apache-tomcat-6.0.18/webapps/manager/status.xsd
apache-tomcat-6.0.18/webapps/manager/xform.xsl
所以安裝完後的路徑為 /opt/pache-tomcat-6.0.18,緊接著我們將 Tomcat 的目錄搬到 /opt/tomcat 去:
[root@KHXPROVS1 opt]# mv /opt/apache-tomcat-6.0.18 /opt/tomcat
[root@KHXPROVS1 opt]# ls -al
total 292800
drwxr-xr-x 6 root root 4096 Sep 8 16:14 .
drwxr-xr-x 25 root root 4096 Sep 4 10:43 ..
-rw-r--r-- 1 root root 6142197 Sep 3 19:04 apache-tomcat-6.0.18.tar.gz
drwxrwxrwx 8 501 501 4096 Jul 1 14:36 iperf-2.0.4
-rw-r--r-- 1 root root 248493 Jul 1 14:35 iperf-2.0.4.tar.gz
-rw-r--r-- 1 root root 61764 Sep 4 11:09 java-1.6.0-sun-compat-1.6.0.07-1jpp.i586.rpm
-rw-r--r-- 1 root root 65414959 Jun 10 18:38 jdk-6u7-linux-i586.rpm
-rwxr-xr-x 1 root root 74397909 Sep 4 09:37 jdk-6u7-linux-i586-rpm.bin
-rw-r--r-- 1 root root 19463427 Jun 10 18:36 jre-6u7-linux-i586.rpm
-rwxr-xr-x 1 root root 19216086 Sep 4 10:31 jre-6u7-linux-i586-rpm.bin
drwx------ 2 root root 16384 Jun 25 22:22 lost+found
drwxr-xr-x 3 root root 4096 Sep 4 09:40 sun
-rw-r--r-- 1 root root 463678 Aug 20 2007 sun-javadb-client-10.3.1-4.1.i386.rpm
-rw-r--r-- 1 root root 62801 Aug 20 2007 sun-javadb-common-10.3.1-4.1.i386.rpm
-rw-r--r-- 1 root root 3655834 Aug 20 2007 sun-javadb-core-10.3.1-4.1.i386.rpm
-rw-r--r-- 1 root root 996942 Aug 20 2007 sun-javadb-demo-10.3.1-4.1.i386.rpm
-rw-r--r-- 1 root root 4290799 Aug 20 2007 sun-javadb-docs-10.3.1-4.1.i386.rpm
-rw-r--r-- 1 root root 123721 Aug 20 2007 sun-javadb-javadoc-10.3.1-4.1.i386.rpm
drwxr-xr-x 9 root root 4096 Sep 4 11:24 tomcat
好了,安裝很簡單吧,接著要更改一下 Tomcat 的環境設定,主要是將下列兩行加進去:export JAVA_HOME=/usr/java/jdk1.6.0_07
export TOMCAT_HOME=/opt/tomcat
[root@KHXPROVS1 opt]# vi /etc/profile
# /etc/profile

# System wide environment and startup programs, for login setup
# Functions and aliases go in /etc/bashrc

pathmunge () {
if ! echo $PATH | /bin/egrep -q "(^|:)$1($|:)" ; then
if [ "$2" = "after" ] ; then
PATH=$PATH:$1
else
PATH=$1:$PATH
fi
fi
}

# Path manipulation
if [ `id -u` = 0 ]; then
pathmunge /sbin
pathmunge /usr/sbin
pathmunge /usr/local/sbin
fi

pathmunge /usr/X11R6/bin after


# No core files by default
ulimit -S -c 0 > /dev/null 2>&1

USER="`id -un`"
LOGNAME=$USER
MAIL="/var/spool/mail/$USER"

HOSTNAME=`/bin/hostname`
HISTSIZE=1000

if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
INPUTRC=/etc/inputrc
fi

export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC

for i in /etc/profile.d/*.sh ; do
if [ -r "$i" ]; then
. $i
fi
done

unset i
unset pathmunge

########## for TOMCAT env. setup ######################
export JAVA_HOME=/usr/java/jdk1.6.0_07
export TOMCAT_HOME=/opt/tomcat
export CATALINA_BASE=/opt/tomcat
export CATALINA_HOME=/opt/tomcat
export CLASSPATH=./:${JAVA_HOME}/lib:${JAVA_HOME}/jre/lib/ext:${CATALINA_HOME}/common/lib
export PATH=${JAVA_HOME}/bin:${CATALINA_HOME}/bin:${PATH}
"/etc/profile" 53L, 983C written
直接讓目前的設定值生效:
[root@KHXPROVS1 opt]# source /etc/profile
設定環境變數,一樣的直接去修改 .bashrc 文件吧:
[root@KHXPROVS1 opt]# vi ~/.bashrc
# .bashrc

# User specific aliases and functions

alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
alias vi='vim'

TERM=xterm-color; export TERM;

# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi

export JAVA_HOME=/usr/java/jdk1.6.0_07
export CATALINA_BASE=/opt/tomcat
export CATALINA_HOME=/opt/tomcat
export PATH=$PATH:$JAVA_HOME/bin
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export TOMCAT_HOME=/opt/tomcat
"~/.bashrc" 22L, 459C
存檔然後離開這個 shell 再進來一次:
[root@KHXPROVS1 opt]# exit
logout
設定到這裡已經差不多囉,接著我們就來測試一下吧:
首先來啟動 Tomcat 服務試試看:
[root@KHXPROVS1 opt]# /opt/tomcat/bin/startup.sh
Using CATALINA_BASE: /opt/tomcat
Using CATALINA_HOME: /opt/tomcat
Using CATALINA_TMPDIR: /opt/tomcat/temp
Using JRE_HOME: /usr/java/jdk1.6.0_07
[root@KHXPROVS1 ~]# ps -aef|grep tomcat
root 14377 1 23 16:49 pts/4 00:00:02 /usr/java/jdk1.6.0_07/bin/java -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/opt/tomcat/conf/logging.properties -Djava.endorsed.dirs=/opt/tomcat/endorsed -classpath :/opt/tomcat/bin/bootstrap.jar -Dcatalina.base=/opt/tomcat -Dcatalina.home=/opt/tomcat -Djava.io.tmpdir=/opt/tomcat/temp org.apache.catalina.startup.Bootstrap start
root 14403 14302 0 16:49 pts/4 00:00:00 grep tomcat
[root@KHXPROVS1 ~]#
最後在瀏覽器中輸入 http://localhost:8080/ 便可看到 Tomcat 的 log 了, 到此安裝告一段落。

另外再測試一下關掉 Tomcat 吧:
[root@KHXPROVS1 opt]# /opt/tomcat/bin/shutdown.sh
Using CATALINA_BASE: /opt/tomcat
Using CATALINA_HOME: /opt/tomcat
Using CATALINA_TMPDIR: /opt/tomcat/temp
Using JRE_HOME: /usr/java/jdk1.6.0_07
[root@KHXPROVS1 opt]#
(詳全文...)

MSN 錯誤代碼 8100030d 的解決方法

今天上班習慣性的想打開 MSN,突然發現 MSN 一直登入失敗,向 Google 大神拜請之後才發現解決之道。以下是解決的方法,記錄下來以供日後參考:

首先是錯誤訊息的出現:
用記事本打開 C:\WINDOWS\system32\drivers\etc\hosts 檔案,在最下方加入下列2行:
65.54.239.80 messenger.hotmail.com
65.54.239.80 dp.msnmessenger.akadns.net
存檔後退出記事本。
這時候機器安裝有防毒軟體的話,可能會彈出警告提示框,記得選擇允許修改。(因為剛才我們修改的是 Windows 路由信息設置檔,是防毒軟體保護的系統文件檔。)

現在再重新連一次 MSN,可以成功登入囉...
(詳全文...)

LINUX DHCP 實作 (二)

在將之前設定好的 DHCP server 設定好之後,這裡要實作將所要派發的 IP range 從 10.69.0.0/16 改成 172.16.16.0/20 (172.16.16.0 ~ 172.16.31.255),另外還要將 172.16.31.0/24 另外做成給一些測試機器作為派發固定 IP 使用。

首先,先作改 IP range 的部分,由於我需要將每個 Class-C 的最後 4 個 IP 保留做後用,另外 network 以及 broadcast 的兩個 IP 也要避開不作派發,另外,在第一個 Class-C 的前 30 個 IP 也要保留作以後測試使用,所以,目前的例子我需要將 IP Pool 改成:
172.16.16.31 ~ 172.16.16.250 + 172.16.17.1 ~ 172.16.17.250 + 172.16.18.1 ~ 172.16.18.250 + 172.16.19.1 ~ 172.16.19.250 + 172.16.20.1 ~ 172.16.20.250 + 172.16.21.1 ~ 172.16.21.250 + 172.16.22.1 ~ 172.16.22.250 + 172.16.23.1 ~ 172.16.23.250 + 172.16.24.1 ~ 172.16.24.250 + 172.16.25.1 ~ 172.16.25.250 + 172.16.26.1 ~ 172.16.26.250 + 172.16.27.1 ~ 172.16.27.250 + 172.16.28.1 ~ 172.16.28.250 + 172.16.29.1 ~ 172.16.29.250 + 172.16.30.1 ~ 172.16.30.250 (另外將 172.16.31.1 ~ 172.16.31.250 先 mark 起來當註解), 由於中間有保留的 IP,所以在設定檔裡自然不能直接用 range 172.16.16.31 172.16.30.250 的寫法,下面便是我的設定檔,其中每個 range 中間用 ; 隔開來,我先列出 DHCP1 MASTER server 的設定:
[root@KHXDHCPS1 ~]# cat /etc/dhcpd.conf
ddns-update-style none;
ignore client-updates;
#ignore unknown-clients;

authoritative;
failover peer "dhcp-failover" {
primary; # declare this to be the primary server
address 10.16.25.30;
port 690;
peer address 10.16.25.31;
peer port 691;
max-response-delay 30;
max-unacked-updates 10;
load balance max seconds 3;
mclt 1800;
split 128;
}

subnet 0.0.0.0 netmask 0.0.0.0 {
option routers 172.16.31.254;
option subnet-mask 255.255.240.0;
option mobile-ip-home-agent 10.16.25.35;
#option mobile-ip-home-agent 172.16.31.254;
option domain-name-servers 168.95.1.1;
default-lease-time 21600;
max-lease-time 43200;
pool {
failover peer "dhcp-failover";

range 172.16.16.31 172.16.16.250;
range 172.16.17.1 172.16.17.250;
range 172.16.18.1 172.16.18.250;
range 172.16.19.1 172.16.19.250;
range 172.16.20.1 172.16.20.250;
range 172.16.21.1 172.16.21.250;
range 172.16.22.1 172.16.22.250;
range 172.16.23.1 172.16.23.250;
range 172.16.24.1 172.16.24.250;
range 172.16.25.1 172.16.25.250;
range 172.16.26.1 172.16.26.250;
range 172.16.27.1 172.16.27.250;
range 172.16.28.1 172.16.28.250;
range 172.16.29.1 172.16.29.250;
range 172.16.30.1 172.16.30.250;
# range 172.16.31.1 172.16.31.250;
deny dynamic bootp clients;
}
}
[root@KHXDHCPS1 ~]#
接下來把兩台 DHCP server 的設定都更改一下,再把 dhcpd 的 service 重起一下:
[root@KHXDHCPS1 ~]# service dhcpd restart
Shutting down dhcpd: [ OK ]
Starting dhcpd: [ OK ]
記得看一下 log 檔,確認一下 dhcpd 的狀態喔:
[root@KHXDHCPS1 ~]# tail -f /var/log/messages
Aug 10 10:07:41 KHXDHCPS1 dhcpd: dhcpd startup succeeded
Aug 10 10:07:41 KHXDHCPS1 dhcpd: dhcpd startup succeeded
Aug 10 10:07:41 KHXDHCPS1 dhcpd: failover peer dhcp-failover: I move from startup to normal
Aug 10 10:07:41 KHXDHCPS1 dhcpd: failover peer dhcp-failover: peer moves from communications-interrupted to normal
Aug 10 10:07:41 KHXDHCPS1 dhcpd: pool 992c3a8 0/0 total 3720 free 2070 backup 1647 lts -211
Aug 10 10:07:48 KHXDHCPS1 dhcpd: peer dhcp-failover: disconnected
Aug 10 10:07:48 KHXDHCPS1 dhcpd: failover peer dhcp-failover: I move from normal to communications-interrupted
Aug 10 10:07:48 KHXDHCPS1 dhcpd: failover peer dhcp-failover: peer moves from normal to normal
Aug 10 10:07:48 KHXDHCPS1 dhcpd: failover peer dhcp-failover: I move from communications-interrupted to normal
Aug 10 10:07:48 KHXDHCPS1 dhcpd: pool 992c3a8 0/0 total 3720 free 2070 backup 1647 lts -211
接下找幾個機器去測試一下,的確可以派發到我所訂的 IP range 裡的 IP。

第二步就是將固定 IP 的部分加進設定檔,不過由於 怕有人在加新的固定 IP 的資料不小心誤改了 /etc/dhcpd.conf 的內容,所以,在這裡我們把固定 IP 的派發設定用另一檔來寫,然後包進 /etc/dhcpd.conf 來,首先我們將剛剛的設定檔在最後的 } 之前加上下面這一行:
include "/etc/dhcpd.static";
然後編輯一個新的檔案叫做 /etc/dhcpd.static 如下:
[root@KHXDHCPS1 ~]# cat /etc/dhcpd.static
host CPE1-static-for-test {
option host-name "CPE1staticTest.test.tw";
hardware ethernet 00:17:C4:12:77:7E;
fixed-address 172.16.30.200;
}
host CPE2-static-for-test {
hardware ethernet 00:17:C4:12:77:65;
fixed-address 172.16.30.150;
}
基本上只要給 MAC-address 跟你想派發的固定 IP 就可以了,以後要加新的機器就直接編輯這個檔就行了...

接下來把兩台 DHCP server 的設定都更改一下,再把 dhcpd 的 service 重起一下,一樣的記得看一下 log 檔,確認一下 dhcpd 的狀態喔。

再用自己的電腦測試一下,果然可以拿到 172.16.30.200 的 IP address。

附上 DHCP MASTER server 最後的 /etc/dhcpd.conf 的內容如下:
[root@KHXDHCPS1 ~]# cat /etc/dhcpd.conf
ddns-update-style none;
ignore client-updates;
#ignore unknown-clients;

authoritative;
failover peer "dhcp-failover" {
primary; # declare this to be the primary server
address 10.16.25.30;
port 690;
peer address 10.16.25.31;
peer port 691;
max-response-delay 30;
max-unacked-updates 10;
load balance max seconds 3;
mclt 1800;
split 128;
}

subnet 0.0.0.0 netmask 0.0.0.0 {
option routers 172.16.31.254;
option subnet-mask 255.255.240.0;
option mobile-ip-home-agent 10.16.25.35;
#option mobile-ip-home-agent 172.16.31.254;
option domain-name-servers 168.95.1.1;
default-lease-time 21600;
max-lease-time 43200;
pool {
failover peer "dhcp-failover";

range 172.16.16.31 172.16.16.250;
range 172.16.17.1 172.16.17.250;
range 172.16.18.1 172.16.18.250;
range 172.16.19.1 172.16.19.250;
range 172.16.20.1 172.16.20.250;
range 172.16.21.1 172.16.21.250;
range 172.16.22.1 172.16.22.250;
range 172.16.23.1 172.16.23.250;
range 172.16.24.1 172.16.24.250;
range 172.16.25.1 172.16.25.250;
range 172.16.26.1 172.16.26.250;
range 172.16.27.1 172.16.27.250;
range 172.16.28.1 172.16.28.250;
range 172.16.29.1 172.16.29.250;
range 172.16.30.1 172.16.30.250;
# range 172.16.31.1 172.16.31.250;

deny dynamic bootp clients;
}

include "/etc/dhcpd.static";

}


其他相關的設定部分可以參考:LINUX DHCP (Dynamic Host Configuration Protocol) Failover 實作
(詳全文...)