Hands-on Guide to the Red Hat Exams.pdf

(12347 KB) Pobierz
Hands-on Guide to the
Red Hat
®
Exams
RHSCA
and RHCE
®
Cert Guide and Lab Manual
Damian Tommasino
Pearson
800 East 96th Street
Indianapolis, Indiana 46240 USA
Hands-on Guide to the Red Hat
®
Exams
Copyright © 2011 by Pearson Education, Inc.
All rights reserved. No part of this book shall be reproduced, stored in a
retrieval system, or transmitted by any means, electronic, mechanical,
photocopying, recording, or otherwise, without written permission from
the publisher. No patent liability is assumed with respect to the use of the
information contained herein. Although every precaution has been taken
in the preparation of this book, the publisher and author assume no
responsibility for errors or omissions. Nor is any liability assumed for
damages resulting from the use of the information contained herein.
ISBN-13: 978-0-321-76795-0
ISBN-10: 0-321-76795-0
Library of Congress Cataloging-in-Publication data is on file.
Printed in the United States of America
First Printing: May 2011
Editor-in-Chief
Mark Taub
Executive Editor
Debra Williams Cauley
Senior Development
Editor
Chris Zahn
Managing Editor
Sandra Schroeder
Project Editor
Mandie Frank
Copy Editor
Chuck Hutchinson
Indexer
Tim Wright
Proofreader
Megan Wade
Technical Editor
Robert P.J. Day
Editorial Assistant
Kim Boedigheimer
Book Designer
Gary Adair
Composition
Mark Shirar
Trademarks
All terms mentioned in this book that are known to be trademarks or serv-
ice marks have been appropriately capitalized. Pearson IT Certification
cannot attest to the accuracy of this information. Use of a term in this
book should not be regarded as affecting the validity of any trademark or
service mark.
Warning and Disclaimer
Every effort has been made to make this book as complete and as accurate
as possible, but no warranty or fitness is implied. The information provid-
ed is on an “as is” basis. The authors and the publisher shall have neither
liability nor responsibility to any person or entity with respect to any loss
or damages arising from the information contained in this book.
Bulk Sales
Que Publishing offers excellent discounts on this book when ordered in
quantity for bulk purchases or special sales. For more information, please
contact
U.S. Corporate and Government Sales
1-800-382-3419
corpsales@pearsontechgroup.com
For sales outside of the U.S., please contact
International Sales
international@pearson.com
Contents at a Glance
Preface xvi
Introduction 3
Chapter 1
Chapter 2
Chapter 3
Chapter 4
Chapter 5
Chapter 6
Chapter 7
Chapter 8
Chapter 9
Chapter 10
Chapter 11
Chapter 12
Chapter 13
Chapter 14
Chapter 15
Chapter 16
Chapter 17
Chapter 18
Chapter 19
Chapter 20
Chapter 21
Chapter 22
Installation 29
System Initialization
47
Disks and Partitioning 71
File Systems and Such
Networking 149
Package Management 169
User Administration
195
113
Network Installs 221
System Logging, Monitoring, and Automation
The Kernel
265
239
SELinux 277
System Security 291
Remote Access 309
Web Services 325
NFS
351
369
Samba
FTP 383
DNS
393
Network Services 421
Email Services 443
Troubleshooting
463
473
Virtualization with KVM
Lab Exam 1
Lab Exam 2
Index
486
483
485
Table of Contents
Preface
xvi
3
29
29
33
37
40
Introduction
Chapter 1
Installation
Starting the Installation
The Firstboot Process
Verifying the Installation
Summary
41
42
Review Questions
An Older Install with RHEL5
Answers to Review Questions
Chapter 2
System Initialization
The Boot Process
The Config File
Runlevels
55
56
59
47
52
47
42
Working with GRUB 51
The GRUB Command Line 54
Runlevel Utilities
Service Management
Summary
66
66
67
Rescue and Recovery Runlevels 59
The Upstart Conversion
Review Questions
64
Answers to Review Questions
Chapter 3
Disks and Partitioning
Basic Partitions
71
75
Creating a Partition
Deleting a Partition
Logical Volume Manager
71
Making a Swap Partition
83
85
81
Creating an LVM Partition
Migrating Data
96
89
93
Adjusting the Size of LVM Partitions
Deleting an LVM Partition
99
Zgłoś jeśli naruszono regulamin