Linux CentOS 6.0 (            )   November 4, 2011




                                                     Linux CentOS 6.0

     ก                       ก Linux
             Linux                 ก" Open Source *+, +-. / 01. " /23" 4 "ก 4 056 / 3" "01.*3"
Intranet/Internet Server 01. " 0           ก "* Web Server, Mail Server, Web-based email , Database Server          F+
    GกHIJ " "2"ก .            MINIX HM,            UNIX *+,      , I+H+IJ "OM P / Andrew S. Tanenbaum -. ."
Kernel F+ GกHOM " Linus Trovalds P /14 V ก Trovalds W . X 4 O H                  P . 05.-.01. " *,4W "4 P5F 01. "
         .      *+,*3"05.    F+ GกHW .     4" / 0 Y22G
             0 Y2G F+ GกHV ก "/I ZW 5F"/ "/I Z 4 056                  F+ GกH2 +FO *Z[ +V   GNU GPL *+, " OM P /
Richard Stallman




                             Andrew S. Tanenbaum, author of the MINIX operating system




                        Richard Stallman                         Linus Torvalds, author of the Linux kernel
      Richard Stallman, founder of the GNU project

*+, ": http://en.wikipedia.org/wiki/Linux

s                           Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd.
                                           http://www.cmslearning.co.th
                                                                                                                1
Linux CentOS 6.0 (                  )    November 4, 2011




0 Y22G           Linux +05. F ก01. " 5F"/              41, 4/ก ก" *+,2 F ก 40 "gMกh"01. "
                                                           .                                            .       /ก 4" I .
5F"/i ." *            ก " V5F          j" O. F I,                   *        k P /     F+ GกH*+W .
                                                                                               ,       4" / 0 Y22G             1
1. RadHat Linux Enterprise        F+ GกH*+,W .       4" / "ก*+, G        Y22G - 4 W *3"0 1 ก" " (Commercial)
                                                                                              .
      1.1. Fedora Linux (http://www.fedoraproject.org) IJ "P / "g/m" 2"ก RedHat (Open Source)
      1.2 CentOS Linux (http://www.centos.org) IJ " "2"ก .                     RedHat Enterprise (Open Source)
2. SuSE Linux Enterprise (http://www.novell.com/linux/)              F+ GกH*+, / 0 Vj /GP        22G
                                                                                                 Y      /p"/0 .ก" 4 G
O       h* Novell
      2.1 Open SuSE (http://www.opensuse.org)            F+ GกH*+,IJ " "2"ก SuSE Linux (Open Source)
3. Mandriva (http://www.mandriva.com) F+,/ 1, "2"ก Mandrake 5 ." " F."/ RedHat (Open Source)
4. Slackware (http://www.slackware.com)              F+ GกH*+, + 4" VOk Vก       45 M, . 01. " -" *" Command line
(Open Source)
5. Debian (http://www.debian.org)        F+ GกH*+, / 01. 3"5 *3" H  4
      5.1 Ubuntu (http://www.ubuntu.com)         G       F+ GกH +ก 45 M, *+ก3"F W .
                                                                           ,           4" / 0           W*/0 O         +
     , 2"ก   ก p" m5F"/       ก            G / IJ " "2"ก .                Debian P /*+, G        +05. F ก "4 P5F           4
1,      Ubuntu Desktop VF Ubuntu Server




s                       Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd.
                                       http://www.cmslearning.co.th
                                                                                                                           2
Linux CentOS 6.0 (              )   November 4, 2011




ก         ;<=>?@ ;                CentOS Linux
    " " j*3"ก" "4 P5F 4            4 1, F" G W .*+, 4k WH http://mirrors.kernel.org/centos/ 5 *+, 4k WH
http://www.centos.org P / Fก F ก*+,        Download




                   4k WH http://mirrors.kernel.org/centos/             4k WH http://www.centos.org


     ก CentOS Linux
          CentOS / "2"ก Community ENTerprise Operating System                   F+ GกH*+,IJ " "2"ก .           RedHat
Enterprise Linux (RHEL) P /*+, CentOS Linux W . 3" "H         P . O RedHat "*3"ก"            WIF05 P /ก" IJ "/
    . IJ "    H  V4 Open Source *+,j FO *Z[V            GNU General Public License

          0 Y22G      CentOS Linux jก 3" "01.0 ก" *3" Web Hosting ก /" ก4." O4" , 2"ก                             ก" *+,
    + . V 2"ก RedHat ( Y22G        . IJ "0 1 ก" .") ก"           VIkก ก2/ /p"/0 " " j01.W * RPM, TAR 5 01.
                                                                                          .
    3" , YUM 0 ก"            *H  V4 V          P        " " j " "/F         + / VF "4 P5F 4              W . *+, 4k WH
www.centos.org




s                        Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd.
                                        http://www.cmslearning.co.th
                                                                                                                  3
Linux CentOS 6.0 (                )       November 4, 2011



                                                   4k WH www.centos.org

AB CDB      E DF G              ก <ก             Linux
           ก ก"                   F+ Gก -. " .     +/ O. F        W +
1. HB E B            G;E        = (Hostname I<     ;> ;A=E DFก; Computer Name) * +ก"            1,    ,       4          1,
     ก" 5Fก*+, . ก" 01. "         "* 1

                     ก       + . ก" 01.*3" ,      * " k 01. " 0      ก 05.       intranet
                     ก           + . ก" 01.*3" , ก" 4k WH 05.         www
                     ก         +*3"         , ก"   H  4 05.         ns1, ns2
                     ก     +              , ก" Fกk        mail, webmail
                     ก          +*3" I k กH+05.     proxy
                     ก        +*3"         , ก" g / +/ .05.       e-learning
2.       F@ E DF K       IP Address
            3"5   "/F +/ O W I+V                 ก +         Pr     ก" 0 PFก     *     k -. "    .   +1G O IP Address 2
*3"ก"       0
            G     , H  4 *+,             4 /" "/F / 5 "/
                                                   +

FOO I+V                  "* 1

                     IP Address : 203.159.231.35
                     Subnet mask : 255.255.255.192
                     Gateway : 203.159.231.1
                     Name Server : 203.159.231.35, 203.159.231.36 < DNS O g / ก" *+,01. " /




s                           Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd.
                                           http://www.cmslearning.co.th
                                                                                                                              4
Linux CentOS 6.0 (                 )    November 4, 2011




                                        ก"        กV     V ก"               Linux Server




L<;C E@ ก;MDก                               Linux

         0 ก"                 Linux 01. " "2 /*+2G
                                                ,               O -.2 *3"      5FกP /ก"           " "j         01. " W .
5F"/V 4*" 4/ก I
          .               G      "4i W .      +

    1. ก              Linux LFกก     Windows
       ก"         Fกh +0 r" ก 5 M, ก. 2 *3"ก"                                   ก" V/กก        54"           Linux ก
    Windows P /                  Windows W .*+,W 5Fก (C:) VF                     Linux W4.*+,W            3"5 W *+,*3"
    ก"             F+ GกH . V         /" . /           I" 1,    Linux Native 3"5 W4. กk O. F VF Linux Swap 3"5
         4s II" 1, 0 ก V I" 1, " " j01. Fdisk V ก ก"                                       4 P 4 5 01.P Vก Partition
    Magic       V 5F ก"            4 P 4 -.              " " j F ก4Z+ก" V I *+,r"           กW .4"2 01. กk        4 P 4 ก+,
         Hk VF 01. กk           F+ GกHก+,         Hk
s                       Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd.
                                       http://www.cmslearning.co.th
                                                                                                                       5
Linux CentOS 6.0 (        )   November 4, 2011




                       ก" V I" 1, V/กก        54" Windows ก Linux
                    V r"       กV    50:50 (Windows = 50%, Linux = 50%)




                       ก" V I" 1, V/กก        54" Windows ก Linux
                    V r"       กV    70:30 (Windows = 70%, Linux = 30%)

    2. ก     Linux N <C > Lก        Virtualization


s          Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd.
                          http://www.cmslearning.co.th
                                                                                        6
Linux CentOS 6.0 (             )   November 4, 2011



          ก"      4Z+ +-.         " " j F กW .4"2                   ก" 40 F W ก        5F 2"ก                      ก"
      k2กk*3"ก"        P Vก        Virtualization "* 1 VMWare, VirtualBox , Xen 5 Microsoft Virtual PC p"/5F
      k2VF.4กk*3"ก"                   Windows Server 5 Linux Server -" *" P Vก Virtualization         +ก    5 M, ก"
          4Z+ +    2 *3"ก" 5, I *+, 4 5 M, O r"          ก "             P /W W *3"F"/      4 P 4 /F+ GกH กF"4
    5"ก               ก" p"/0 P Vก Virtualization I 2 W            -Fก *                  ก" *+,01. " / ก"
     " V 44Z+ + 5 " 3"5 5. LAB 0 j" ก" gMกh" j" tuก                            5Fก       I4          ก +/    กgMกh"
    5 -. 02*,4W *+, . ก" *               01. " F+ GกH




                                 ก"         Linux -" *" P Vก     Virtualization 0      Windows




                                 ก"         Windows -" *" P Vก      Virtualization 0     Linux



s                           Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd.
                                           http://www.cmslearning.co.th
                                                                                                               7
Linux CentOS 6.0 (         )   November 4, 2011




                                     4 /" P Vก VirtualBOX




                                       4 /" P Vก VMWare

Note.

    " " j " "/F +/ ก"       VF 01. " P Vก VMWare VF VirtualBox W .*+, 4k WH

s                Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd.
                                http://www.cmslearning.co.th
                                                                                              8
Linux CentOS 6.0 (              )   November 4, 2011



www.arnut.com


    3. ก           @D<OกP=EGB IH <
       ก"         4Z+ + ก"              F+ GกH I+/         +/4 W +       , O." " ก+,/4O.       5 " 3 "5
        01. " 2      0 ก"          " " jV I *+,r"       กW . 2 Fกh

            3.1 ก L Q = Aก=E R< 2 G = HB<
                3.1.1 I" 1, V กV  Linux Swap (Swap) P /V                    2 *"O RAM *+,01. " /
     4 /" 1 ก + + RAM / 512 MB กkก3"5                 512 x 2 = 1024 MB

                 3.1.2 I" 1, *+,    V       Linux Native (Ext3) 3"5 กk O. FP /01I *+, ก*+,
    5F /




                                        ก" V r"        ก      2 I" 1,

            3.2 ก L Q = Aก=> FL G = HB<L LFก A
                ก" V 4Z+ +-. . +ก" 2 I *+,r" ก01. " " 4" . ก"                                   "* V I *+,
            5.    /home W4. 3"5 กk 4k WH -.01. " /Fก .", 5.          /usr       3"5 01.        VIkก ก2 " i

s                     Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd.
                                     http://www.cmslearning.co.th
                                                                                                         9
Linux CentOS 6.0 (          )   November 4, 2011



        5.       /var 3"5 กk Fk กWF, 5.        /tmp 3"5 กk WF1,4 "4, 5.           /cache 3"5 กk
                *Mก 5 Gก"   " i O P Vก

        I k กH+, H  4 , 5.       / 3"5           s*I" 1, , 5.     swap 3"5 *3" 4s II" 1,
            .




                                 ก" V r"        กP /I" 1, V V/ก


ก IH Nero EKDF<LN< ;                 CDBE < Image File (*.iso)
                                          R
1. X P Vก        Nero I, O+/ V- CD




s                    Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd.
                                    http://www.cmslearning.co.th
                                                                                                  10
Linux CentOS 6.0 (        )   November 4, 2011




                                           X P Vก     Nero

2. Fก F ก*+, Disc Image or Saved Project




                                F ก Disc Image or Saved Project

3. Fก F ก     p*WF*+, File of type        Image Files (*.mrg, *.iso, *.cue)




s                  Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd.
                                  http://www.cmslearning.co.th
                                                                                               11
Linux CentOS 6.0 (           )   November 4, 2011




                                 Fก      p*WF       Image Files

4. Fก F ก Image File *+, . ก" 0 *+, + F ก      CentOS-6.0-i386-bin-DVD.iso        k2VF.4 Fก G€
Open




                                         F ก Image File



5. Fก G€ Next I, *3"ก" O+/ V- H+ +
s                  Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd.
                                  http://www.cmslearning.co.th
                                                                                                 12
Linux CentOS 6.0 (            )   November 4, 2011




                                        Fก G€ Next I, *3"ก" O+/ V- H+ +



6. Fก G€ Close ,               G ก" O+/ V-


K< <ก                       CentOS Linux
1. ก        , 05.*3"ก" "4 P5F 4       F+ GกH 4 1, F" G W .*+, 4k WH www.centos.org VF.4*3"ก" O+/ V- 4
CentOS Linux
2. *3"ก"        " BIOS O       , H  4 05. s 2"ก CD-ROM 5 DVD-ROM VF.4*3"ก" s             , 05

3. 0   V-     CD/DVD   4
4.   F ก*+,   Install or upgrade an existing system




s                          Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd.
                                          http://www.cmslearning.co.th
                                                                                                          13
Linux CentOS 6.0 (       )   November 4, 2011




                                 F ก Install or upgrade an existing system

5.   Fก F ก*+, Skip




s                     Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd.
                                     http://www.cmslearning.co.th
                                                                                                  14
Linux CentOS 6.0 (   )   November 4, 2011



6.   V   O. 4" .      ก"      05. Fก F ก*+, G€   NEXT>




7.   Fก F กp"h"    English (English)     k2VF.4 Fก F ก G€   Next




s                   Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd.
                                   http://www.cmslearning.co.th
                                                                                                15
Linux CentOS 6.0 (           )   November 4, 2011




8.   Fก F ก1       ƒ I I     U.S.English    k2VF.4 Fก F ก*+, G€   Next




9.   F ก1 O Hard Disk *+,01. " / 0 *+, +05. Fก F ก Basic Storage Devices           k2VF.4 Fก G€ Next
ก + HDD        V    SANs 05. Fก F ก*+, Specialized Storage Devices




s                      Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd.
                                      http://www.cmslearning.co.th
                                                                                                            16
Linux CentOS 6.0 (   )   November 4, 2011




10.   Fก F ก ก*+, . ก"          F+ GกH    k2VF.4 Fก*+, G€   Next




11. ก3"5    "*"    O"/
Hostname:    ก3"5 1,     ,   0 *+, ก3"5
                                   +           server01.cmslearning.co.th

s                      Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd.
                                      http://www.cmslearning.co.th
                                                                                                     17
Linux CentOS 6.0 (          )   November 4, 2011




12.   Fก*+, Configure Network I, ก3"5           "/F +/ W I+V




13.   Fก F ก*+,   System eth0   VF.4 Fก*+, G€    Edit   I, ก3"5   "/F /
                                                                      +   IP Address O   LAN Card 0   Vก


s                       Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd.
                                       http://www.cmslearning.co.th
                                                                                                           18
Linux CentOS 6.0 (           )   November 4, 2011




14.       ก3"5      "/F +/ LAN Card 0 V ก (eth0) Fก*+,V*k IPv4 Settings             k2VF.4ก G€ Apply…
    *+,   Method        F ก Manual
      Fก G€       Add   VF.4ก3"5      "/F +/ W I+
                 Address: 192.168.3.5       5 "/ FOI+V
                 Netmask: 24       (24 bit = 255.255.255.0) 5 "/ FOH     k "ก
                 Gateway: 192.168.3.1       ก3"5 5 "/ FOO       "      *+, ก   *    k 1 192.168.3.1




s                              Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd.
                                              http://www.cmslearning.co.th
                                                                                                                   19
Linux CentOS 6.0 (         )   November 4, 2011




s   Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd.
                   http://www.cmslearning.co.th
                                                                                20
Linux CentOS 6.0 (         )   November 4, 2011



15. ก3"5   "/F / W I+V
               +            0 *+, 2 (j." +)




s                  Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd.
                                  http://www.cmslearning.co.th
                                                                                               21
Linux CentOS 6.0 (      )   November 4, 2011



16.   5F 2"ก3"5   "/F +/ W I+V           k2VF.405. Fก*+, G€   Close   VF Fก G€   Next




17.    Fก F กm" 4F"      Bangkok     k2VF.4 Fก*+, G€   Next




s                     Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd.
                                     http://www.cmslearning.co.th
                                                                                                     22
Linux CentOS 6.0 (   )   November 4, 2011



18.   ก3"5   5 -" -. VF        (root)   k2VF.4 Fก*+, G€   Next




19.    Fก F กI *+, ก*+, . ก"                 k2VF.4 Fก*+, G€   Next




s                     Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd.
                                     http://www.cmslearning.co.th
                                                                                                   23
Linux CentOS 6.0 (   )   November 4, 2011




20.   Fก F ก      1, *+, . ก"      k2VF.4 Fก*+, G€   Next

    Fก F ก*+, [ /] Basic Server
            [ / ] Customize now

                      1,                                                             3" Z "/
Desktop                                          F   ก                V X Windows
Minimal Desktop                                  F   ก                V X Windows V 23"ก
Minimal                                          F   ก                V ก
Basic Server                                     F   ก                V H 4
Database Server                                 ก     +            ก" *3" " ." H  4
Web Server                                      ก       +       . ก" *3" 4k H  4
Virtual Host                                    ก         +      . ก" *3"Pr    5F"/P
Software Development Application                ก           +     . 0 ก" IJ "V IF 1,




s                          Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd.
                                          http://www.cmslearning.co.th
                                                                                                             24
Linux CentOS 6.0 (            )   November 4, 2011




21.   Fก F ก    1, " i *+, . ก" 01. "   k2VF.4 Fก*+, G€   Next



                   Base System                                              Servers




                  Web Services                                            Databases




               System Management                                         Virtualization




                    Desktops                                        Applications
s                   Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd.
                                   http://www.cmslearning.co.th
                                                                                                       25
Linux CentOS 6.0 (             )   November 4, 2011




    Developments                                       Resilient Storage




    High Availability                                    Load Balancer




       Optional                                           Languages




s       Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd.
                       http://www.cmslearning.co.th
                                                                                        26
Linux CentOS 6.0 (      )   November 4, 2011




22.   , *3"ก"    F+ GกH (1."5   k4OM /ก 23" 4 VIkก.ก2*+, F ก)




s               Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd.
                               http://www.cmslearning.co.th
                                                                                            27
Linux CentOS 6.0 (         )   November 4, 2011



23.    Fก G€    Reboot




ก Login EK
1. V           O *3"ก" s O."




s                        Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd.
                                        http://www.cmslearning.co.th
                                                                                                     28
Linux CentOS 6.0 (         )   November 4, 2011



2. *3"ก" Fk ก   O."    P /01.1, V    " 4" root VF ƒ   5 -" *+,01.




3. V   5 ." " 5F 2"กFk ก     3" k2




s                     Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd.
                                     http://www.cmslearning.co.th
                                                                                                  29
Linux CentOS 6.0 (   )   November 4, 2011



ก" Logout ก2"ก

1. ก +*+, . ก"      ก2"ก     " " j01. 3" , logout 5 ก G€ Ctrl + D




                                            Fk ก "         ก2"ก



ก    Shutdown

        0 ก + . ก" X          5 *3"ก" + s"*           " " j , P /01. " ,
                                                                     3        +

        # shutdown -r now        (*3"ก" Restart        )

        # shutdown -h now        (*3"ก" Shutdown            )

        # restart                (*3"ก" Restart        )

        # halt                   (*3"ก" Shutdown            )

        # poweroff               (*3"ก" X         )
s                      Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd.
                                      http://www.cmslearning.co.th
                                                                                                    30
Linux CentOS 6.0 (         )   November 4, 2011




5 ." "   X Windows O    CentOS 6




s                      Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd.
                                      http://www.cmslearning.co.th
                                                                                                   31
Linux CentOS 6.0 (         )   November 4, 2011




                      Write by A.ARrnut Ruttanatirakul (@arnutr)
                      http://www.arnut.com
                      November 04, 2011




    CMS Learning Technology Center Co.,Ltd.
              Z<F=[ก
                                  <E<] E; = L@ PDE DF;^ D
                    A _     Tel. 02-5120352, 088-5791324
                       e-Mail. info@cmslearning.co.th




s          Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd.
                          http://www.cmslearning.co.th
                                                                                       32

Linux_CentOS6.0_Installation

  • 1.
    Linux CentOS 6.0( ) November 4, 2011 Linux CentOS 6.0 ก ก Linux Linux ก" Open Source *+, +-. / 01. " /23" 4 "ก 4 056 / 3" "01.*3" Intranet/Internet Server 01. " 0 ก "* Web Server, Mail Server, Web-based email , Database Server F+ GกHIJ " "2"ก . MINIX HM, UNIX *+, , I+H+IJ "OM P / Andrew S. Tanenbaum -. ." Kernel F+ GกHOM " Linus Trovalds P /14 V ก Trovalds W . X 4 O H P . 05.-.01. " *,4W "4 P5F 01. " . *+,*3"05. F+ GกHW . 4" / 0 Y22G 0 Y2G F+ GกHV ก "/I ZW 5F"/ "/I Z 4 056 F+ GกH2 +FO *Z[ +V GNU GPL *+, " OM P / Richard Stallman Andrew S. Tanenbaum, author of the MINIX operating system Richard Stallman Linus Torvalds, author of the Linux kernel Richard Stallman, founder of the GNU project *+, ": http://en.wikipedia.org/wiki/Linux s Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd. http://www.cmslearning.co.th 1
  • 2.
    Linux CentOS 6.0( ) November 4, 2011 0 Y22G Linux +05. F ก01. " 5F"/ 41, 4/ก ก" *+,2 F ก 40 "gMกh"01. " . . /ก 4" I . 5F"/i ." * ก " V5F j" O. F I, * k P / F+ GกH*+W . , 4" / 0 Y22G 1 1. RadHat Linux Enterprise F+ GกH*+,W . 4" / "ก*+, G Y22G - 4 W *3"0 1 ก" " (Commercial) . 1.1. Fedora Linux (http://www.fedoraproject.org) IJ "P / "g/m" 2"ก RedHat (Open Source) 1.2 CentOS Linux (http://www.centos.org) IJ " "2"ก . RedHat Enterprise (Open Source) 2. SuSE Linux Enterprise (http://www.novell.com/linux/) F+ GกH*+, / 0 Vj /GP 22G Y /p"/0 .ก" 4 G O h* Novell 2.1 Open SuSE (http://www.opensuse.org) F+ GกH*+,IJ " "2"ก SuSE Linux (Open Source) 3. Mandriva (http://www.mandriva.com) F+,/ 1, "2"ก Mandrake 5 ." " F."/ RedHat (Open Source) 4. Slackware (http://www.slackware.com) F+ GกH*+, + 4" VOk Vก 45 M, . 01. " -" *" Command line (Open Source) 5. Debian (http://www.debian.org) F+ GกH*+, / 01. 3"5 *3" H 4 5.1 Ubuntu (http://www.ubuntu.com) G F+ GกH +ก 45 M, *+ก3"F W . , 4" / 0 W*/0 O + , 2"ก ก p" m5F"/ ก G / IJ " "2"ก . Debian P /*+, G +05. F ก "4 P5F 4 1, Ubuntu Desktop VF Ubuntu Server s Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd. http://www.cmslearning.co.th 2
  • 3.
    Linux CentOS 6.0( ) November 4, 2011 ก ;<=>?@ ; CentOS Linux " " j*3"ก" "4 P5F 4 4 1, F" G W .*+, 4k WH http://mirrors.kernel.org/centos/ 5 *+, 4k WH http://www.centos.org P / Fก F ก*+, Download 4k WH http://mirrors.kernel.org/centos/ 4k WH http://www.centos.org ก CentOS Linux CentOS / "2"ก Community ENTerprise Operating System F+ GกH*+,IJ " "2"ก . RedHat Enterprise Linux (RHEL) P /*+, CentOS Linux W . 3" "H P . O RedHat "*3"ก" WIF05 P /ก" IJ "/ . IJ " H V4 Open Source *+,j FO *Z[V GNU General Public License 0 Y22G CentOS Linux jก 3" "01.0 ก" *3" Web Hosting ก /" ก4." O4" , 2"ก ก" *+, + . V 2"ก RedHat ( Y22G . IJ "0 1 ก" .") ก" VIkก ก2/ /p"/0 " " j01.W * RPM, TAR 5 01. . 3" , YUM 0 ก" *H V4 V P " " j " "/F + / VF "4 P5F 4 W . *+, 4k WH www.centos.org s Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd. http://www.cmslearning.co.th 3
  • 4.
    Linux CentOS 6.0( ) November 4, 2011 4k WH www.centos.org AB CDB E DF G ก <ก Linux ก ก" F+ Gก -. " . +/ O. F W + 1. HB E B G;E = (Hostname I< ;> ;A=E DFก; Computer Name) * +ก" 1, , 4 1, ก" 5Fก*+, . ก" 01. " "* 1 ก + . ก" 01.*3" , * " k 01. " 0 ก 05. intranet ก + . ก" 01.*3" , ก" 4k WH 05. www ก +*3" , ก" H 4 05. ns1, ns2 ก + , ก" Fกk mail, webmail ก +*3" I k กH+05. proxy ก +*3" , ก" g / +/ .05. e-learning 2. F@ E DF K IP Address 3"5 "/F +/ O W I+V ก + Pr ก" 0 PFก * k -. " . +1G O IP Address 2 *3"ก" 0 G , H 4 *+, 4 /" "/F / 5 "/ + FOO I+V "* 1 IP Address : 203.159.231.35 Subnet mask : 255.255.255.192 Gateway : 203.159.231.1 Name Server : 203.159.231.35, 203.159.231.36 < DNS O g / ก" *+,01. " / s Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd. http://www.cmslearning.co.th 4
  • 5.
    Linux CentOS 6.0( ) November 4, 2011 ก" กV V ก" Linux Server L<;C E@ ก;MDก Linux 0 ก" Linux 01. " "2 /*+2G , O -.2 *3" 5FกP /ก" " "j 01. " W . 5F"/V 4*" 4/ก I . G "4i W . + 1. ก Linux LFกก Windows ก" Fกh +0 r" ก 5 M, ก. 2 *3"ก" ก" V/กก 54" Linux ก Windows P / Windows W .*+,W 5Fก (C:) VF Linux W4.*+,W 3"5 W *+,*3" ก" F+ GกH . V /" . / I" 1, Linux Native 3"5 W4. กk O. F VF Linux Swap 3"5 4s II" 1, 0 ก V I" 1, " " j01. Fdisk V ก ก" 4 P 4 5 01.P Vก Partition Magic V 5F ก" 4 P 4 -. " " j F ก4Z+ก" V I *+,r" กW .4"2 01. กk 4 P 4 ก+, Hk VF 01. กk F+ GกHก+, Hk s Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd. http://www.cmslearning.co.th 5
  • 6.
    Linux CentOS 6.0( ) November 4, 2011 ก" V I" 1, V/กก 54" Windows ก Linux V r" กV 50:50 (Windows = 50%, Linux = 50%) ก" V I" 1, V/กก 54" Windows ก Linux V r" กV 70:30 (Windows = 70%, Linux = 30%) 2. ก Linux N <C > Lก Virtualization s Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd. http://www.cmslearning.co.th 6
  • 7.
    Linux CentOS 6.0( ) November 4, 2011 ก" 4Z+ +-. " " j F กW .4"2 ก" 40 F W ก 5F 2"ก ก" k2กk*3"ก" P Vก Virtualization "* 1 VMWare, VirtualBox , Xen 5 Microsoft Virtual PC p"/5F k2VF.4กk*3"ก" Windows Server 5 Linux Server -" *" P Vก Virtualization +ก 5 M, ก" 4Z+ + 2 *3"ก" 5, I *+, 4 5 M, O r" ก " P /W W *3"F"/ 4 P 4 /F+ GกH กF"4 5"ก ก" p"/0 P Vก Virtualization I 2 W -Fก * ก" *+,01. " / ก" " V 44Z+ + 5 " 3"5 5. LAB 0 j" ก" gMกh" j" tuก 5Fก I4 ก +/ กgMกh" 5 -. 02*,4W *+, . ก" * 01. " F+ GกH ก" Linux -" *" P Vก Virtualization 0 Windows ก" Windows -" *" P Vก Virtualization 0 Linux s Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd. http://www.cmslearning.co.th 7
  • 8.
    Linux CentOS 6.0( ) November 4, 2011 4 /" P Vก VirtualBOX 4 /" P Vก VMWare Note. " " j " "/F +/ ก" VF 01. " P Vก VMWare VF VirtualBox W .*+, 4k WH s Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd. http://www.cmslearning.co.th 8
  • 9.
    Linux CentOS 6.0( ) November 4, 2011 www.arnut.com 3. ก @D<OกP=EGB IH < ก" 4Z+ + ก" F+ GกH I+/ +/4 W + , O." " ก+,/4O. 5 " 3 "5 01. " 2 0 ก" " " jV I *+,r" กW . 2 Fกh 3.1 ก L Q = Aก=E R< 2 G = HB< 3.1.1 I" 1, V กV Linux Swap (Swap) P /V 2 *"O RAM *+,01. " / 4 /" 1 ก + + RAM / 512 MB กkก3"5 512 x 2 = 1024 MB 3.1.2 I" 1, *+, V Linux Native (Ext3) 3"5 กk O. FP /01I *+, ก*+, 5F / ก" V r" ก 2 I" 1, 3.2 ก L Q = Aก=> FL G = HB<L LFก A ก" V 4Z+ +-. . +ก" 2 I *+,r" ก01. " " 4" . ก" "* V I *+, 5. /home W4. 3"5 กk 4k WH -.01. " /Fก .", 5. /usr 3"5 01. VIkก ก2 " i s Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd. http://www.cmslearning.co.th 9
  • 10.
    Linux CentOS 6.0( ) November 4, 2011 5. /var 3"5 กk Fk กWF, 5. /tmp 3"5 กk WF1,4 "4, 5. /cache 3"5 กk *Mก 5 Gก" " i O P Vก I k กH+, H 4 , 5. / 3"5 s*I" 1, , 5. swap 3"5 *3" 4s II" 1, . ก" V r" กP /I" 1, V V/ก ก IH Nero EKDF<LN< ; CDBE < Image File (*.iso) R 1. X P Vก Nero I, O+/ V- CD s Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd. http://www.cmslearning.co.th 10
  • 11.
    Linux CentOS 6.0( ) November 4, 2011 X P Vก Nero 2. Fก F ก*+, Disc Image or Saved Project F ก Disc Image or Saved Project 3. Fก F ก p*WF*+, File of type Image Files (*.mrg, *.iso, *.cue) s Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd. http://www.cmslearning.co.th 11
  • 12.
    Linux CentOS 6.0( ) November 4, 2011 Fก p*WF Image Files 4. Fก F ก Image File *+, . ก" 0 *+, + F ก CentOS-6.0-i386-bin-DVD.iso k2VF.4 Fก G€ Open F ก Image File 5. Fก G€ Next I, *3"ก" O+/ V- H+ + s Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd. http://www.cmslearning.co.th 12
  • 13.
    Linux CentOS 6.0( ) November 4, 2011 Fก G€ Next I, *3"ก" O+/ V- H+ + 6. Fก G€ Close , G ก" O+/ V- K< <ก CentOS Linux 1. ก , 05.*3"ก" "4 P5F 4 F+ GกH 4 1, F" G W .*+, 4k WH www.centos.org VF.4*3"ก" O+/ V- 4 CentOS Linux 2. *3"ก" " BIOS O , H 4 05. s 2"ก CD-ROM 5 DVD-ROM VF.4*3"ก" s , 05 3. 0 V- CD/DVD 4 4. F ก*+, Install or upgrade an existing system s Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd. http://www.cmslearning.co.th 13
  • 14.
    Linux CentOS 6.0( ) November 4, 2011 F ก Install or upgrade an existing system 5. Fก F ก*+, Skip s Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd. http://www.cmslearning.co.th 14
  • 15.
    Linux CentOS 6.0( ) November 4, 2011 6. V O. 4" . ก" 05. Fก F ก*+, G€ NEXT> 7. Fก F กp"h" English (English) k2VF.4 Fก F ก G€ Next s Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd. http://www.cmslearning.co.th 15
  • 16.
    Linux CentOS 6.0( ) November 4, 2011 8. Fก F ก1 ƒ I I U.S.English k2VF.4 Fก F ก*+, G€ Next 9. F ก1 O Hard Disk *+,01. " / 0 *+, +05. Fก F ก Basic Storage Devices k2VF.4 Fก G€ Next ก + HDD V SANs 05. Fก F ก*+, Specialized Storage Devices s Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd. http://www.cmslearning.co.th 16
  • 17.
    Linux CentOS 6.0( ) November 4, 2011 10. Fก F ก ก*+, . ก" F+ GกH k2VF.4 Fก*+, G€ Next 11. ก3"5 "*" O"/ Hostname: ก3"5 1, , 0 *+, ก3"5 + server01.cmslearning.co.th s Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd. http://www.cmslearning.co.th 17
  • 18.
    Linux CentOS 6.0( ) November 4, 2011 12. Fก*+, Configure Network I, ก3"5 "/F +/ W I+V 13. Fก F ก*+, System eth0 VF.4 Fก*+, G€ Edit I, ก3"5 "/F / + IP Address O LAN Card 0 Vก s Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd. http://www.cmslearning.co.th 18
  • 19.
    Linux CentOS 6.0( ) November 4, 2011 14. ก3"5 "/F +/ LAN Card 0 V ก (eth0) Fก*+,V*k IPv4 Settings k2VF.4ก G€ Apply… *+, Method F ก Manual Fก G€ Add VF.4ก3"5 "/F +/ W I+ Address: 192.168.3.5 5 "/ FOI+V Netmask: 24 (24 bit = 255.255.255.0) 5 "/ FOH k "ก Gateway: 192.168.3.1 ก3"5 5 "/ FOO " *+, ก * k 1 192.168.3.1 s Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd. http://www.cmslearning.co.th 19
  • 20.
    Linux CentOS 6.0( ) November 4, 2011 s Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd. http://www.cmslearning.co.th 20
  • 21.
    Linux CentOS 6.0( ) November 4, 2011 15. ก3"5 "/F / W I+V + 0 *+, 2 (j." +) s Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd. http://www.cmslearning.co.th 21
  • 22.
    Linux CentOS 6.0( ) November 4, 2011 16. 5F 2"ก3"5 "/F +/ W I+V k2VF.405. Fก*+, G€ Close VF Fก G€ Next 17. Fก F กm" 4F" Bangkok k2VF.4 Fก*+, G€ Next s Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd. http://www.cmslearning.co.th 22
  • 23.
    Linux CentOS 6.0( ) November 4, 2011 18. ก3"5 5 -" -. VF (root) k2VF.4 Fก*+, G€ Next 19. Fก F กI *+, ก*+, . ก" k2VF.4 Fก*+, G€ Next s Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd. http://www.cmslearning.co.th 23
  • 24.
    Linux CentOS 6.0( ) November 4, 2011 20. Fก F ก 1, *+, . ก" k2VF.4 Fก*+, G€ Next Fก F ก*+, [ /] Basic Server [ / ] Customize now 1, 3" Z "/ Desktop F ก V X Windows Minimal Desktop F ก V X Windows V 23"ก Minimal F ก V ก Basic Server F ก V H 4 Database Server ก + ก" *3" " ." H 4 Web Server ก + . ก" *3" 4k H 4 Virtual Host ก + . ก" *3"Pr 5F"/P Software Development Application ก + . 0 ก" IJ "V IF 1, s Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd. http://www.cmslearning.co.th 24
  • 25.
    Linux CentOS 6.0( ) November 4, 2011 21. Fก F ก 1, " i *+, . ก" 01. " k2VF.4 Fก*+, G€ Next Base System Servers Web Services Databases System Management Virtualization Desktops Applications s Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd. http://www.cmslearning.co.th 25
  • 26.
    Linux CentOS 6.0( ) November 4, 2011 Developments Resilient Storage High Availability Load Balancer Optional Languages s Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd. http://www.cmslearning.co.th 26
  • 27.
    Linux CentOS 6.0( ) November 4, 2011 22. , *3"ก" F+ GกH (1."5 k4OM /ก 23" 4 VIkก.ก2*+, F ก) s Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd. http://www.cmslearning.co.th 27
  • 28.
    Linux CentOS 6.0( ) November 4, 2011 23. Fก G€ Reboot ก Login EK 1. V O *3"ก" s O." s Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd. http://www.cmslearning.co.th 28
  • 29.
    Linux CentOS 6.0( ) November 4, 2011 2. *3"ก" Fk ก O." P /01.1, V " 4" root VF ƒ 5 -" *+,01. 3. V 5 ." " 5F 2"กFk ก 3" k2 s Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd. http://www.cmslearning.co.th 29
  • 30.
    Linux CentOS 6.0( ) November 4, 2011 ก" Logout ก2"ก 1. ก +*+, . ก" ก2"ก " " j01. 3" , logout 5 ก G€ Ctrl + D Fk ก " ก2"ก ก Shutdown 0 ก + . ก" X 5 *3"ก" + s"* " " j , P /01. " , 3 + # shutdown -r now (*3"ก" Restart ) # shutdown -h now (*3"ก" Shutdown ) # restart (*3"ก" Restart ) # halt (*3"ก" Shutdown ) # poweroff (*3"ก" X ) s Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd. http://www.cmslearning.co.th 30
  • 31.
    Linux CentOS 6.0( ) November 4, 2011 5 ." " X Windows O CentOS 6 s Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd. http://www.cmslearning.co.th 31
  • 32.
    Linux CentOS 6.0( ) November 4, 2011 Write by A.ARrnut Ruttanatirakul (@arnutr) http://www.arnut.com November 04, 2011 CMS Learning Technology Center Co.,Ltd. Z<F=[ก <E<] E; = L@ PDE DF;^ D A _ Tel. 02-5120352, 088-5791324 e-Mail. info@cmslearning.co.th s Copyright(c) 2011 by CMS Learning Technology Center Co.,Ltd. http://www.cmslearning.co.th 32