46195442 step by step guide rhel6 server installation and administration

11

Upload: kunalbiswas783579

Post on 14-Sep-2014

154 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 46195442 Step by Step Guide RHEL6 Server Installation and Administration
Page 2: 46195442 Step by Step Guide RHEL6 Server Installation and Administration

Global Open Versity ICT Labs Step-By-Step Guide RHEL 6 Server Installation & Administration v1.4

April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada www.globalopenversity.org ICT203 – Mastering CentOS-5 RHEL 5/6 Server Administration

1

Global Open Versity

Systems Integration Hands-on Labs Training Manual

Step-By-Step Install Guide Red Hat Enterprise Linux 6 Server

Kefa Rabah Global Open Versity, Vancouver Canada

[email protected] www.globalopenversity.org

Table of Contents Page No.

INSTALL GUIDE RED HAT ENTERPRISE LINUX 6 SERVER 3

Introduction 3

The world's leading open source application platform 3

Part 1: Install RHEL 6 Server 4

Part 2: Post Installation Configurations. 25 Step 1: Perform System Upgrade 25 Step 2: Configure NIC to Static IP Address. 26 Step 3: Check Computer Hostname 27 Step 4: Modify the Hosts file 28

Part 3: Installing Apache, PHP, MySQL 28 Step 1: Install LAMP 28 Step 2: Test PHP Installation 29 Step 3: Lockdown MySQL Database Server 30

Part 4: Installing PostgreSQL 32

Part 5: Installing and Configuring Webmin 34 Step 1: Install Webmin 35

Part 6: Install DNS Server 37 Step 1: Modify “/etc/hosts” and “/etc/resolv.conf” files 37 Step 2: Install and Configure Bind9 for DNS Name Resolution 39

2.1 Name Resolution 39 2.2 Install & Configure Bind9 DNS server 39

Part 7: Install and Configure vsFTP Server 42 Step 1: Install and Configure VSFTPD Server 42 Step 2: Users Login 44

Part 8: Install OpenSSH Package 46

Part 9: Install JDK6 46

Page 3: 46195442 Step by Step Guide RHEL6 Server Installation and Administration

Global Open Versity ICT Labs Step-By-Step Guide RHEL 6 Server Installation & Administration v1.4

April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada www.globalopenversity.org ICT203 – Mastering CentOS-5 RHEL 5/6 Server Administration

2

Part 10: Install Ant Package 47

Part 11: Install Apache Tomcat 7 Application Server 48 11.1 Accessing Tomcat 6 manager and host-manager webapps 49 11.2 Tomcat examples webapps 50 11.3 Moving around Tomcat7 under command-line 50

Part 12: Install and Configure NFS 51 Step 1: Install NFS packages On both Server Side and Client Side 51 Step 2: On the Server Side 51 Step 3: On the client Side – Fedora 13 52

Part 13: Install JBoss: Open Source J2EE Server, and Combined JBoss + JPortal on Linux Server 54 Step 1: Install JBoss 54

1.1 Download JBoss Software on RHEL6 54 1.2: Start/Stop JBOSS 55 1.3: Accessing JBOSS server 55

Step 4: Installing JBoss+Portal Bundle on RHEL6 58

Part 14: Troubleshooting FTP Client Connection Failure 62

Part 15: Troubleshooting SELinux 63 Step 1: Fully Disabling SELinux 63

Part 16: Hands-on Lab Assignments 63 Mastering CentOS-5 / RHEL 5/6 Server Administration and System Integration Training - ICT203 64

Linux Administration Training 64

A GOV Open Knowledge Access Technical Academic Publications License Enhancing education & empowering people worldwide through eLearning in the 21st Century

Page 4: 46195442 Step by Step Guide RHEL6 Server Installation and Administration

Global Open Versity ICT Labs Step-By-Step Guide RHEL 6 Server Installation & Administration v1.4

April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada www.globalopenversity.org ICT203 – Mastering CentOS-5 RHEL 5/6 Server Administration

3

Global Open Versity Systems Integration Hands-on Labs Training Manual

Install Guide Red Hat Enterprise Linux 6 Server By Kefa Rabah, [email protected] Jan 2, 2011 GTS Institute

Introduction

The world's leading open source application platform

Red Hat Enterprise Linux (RHEL) is a Linux distribution produced by Red Hat and targeted toward the commercial market, including mainframes. Red Hat Enterprise Linux is released in server versions for x86, x86_64, Itanium, PowerPC and IBM System z, and desktop versions for x86 and x86_64. All of Red Hat's official support and training, and the Red Hat Certification Program center on the Red Hat Enterprise Linux platform The long-awaited Red Hat Enterprise Linux (RHEL) 6 delivers improvements including KVM and improved scalability. However, Xen is no longer supported. Red Hat Enterprise Linux (RHEL) is a commercial Linux OS that is designed for businesses that need full support and the highest amount of reliability possible for mission critical applications. Historically, RHEL has been a derivative of the Fedora Linux project with features and release cycles that meet the requirements of Red Hat's commercial customers. On one certified platform, Red Hat Enterprise Linux offers your choice of: (i) Applications - Thousands of certified ISV applications; (ii) Deployment - Including standalone or virtual servers, cloud computing, or software appliances; (iii) Hardware - Wide range of platforms from the world's leading hardware vendors. This gives IT departments’ unprecedented levels of operational flexibility. And it gives ISVs unprecedented market reach when delivering applications. Certify once, deploy anywhere. All while providing world-class performance, security, and stability. And unbeatable value. This is why today Red Hat is the platform of choice. Xen has been dropped and instead KVM is used. KVM (Kernel-based Virtual Machine) replaced Xen as the virtualization product of choice. KVM is a bare metal hypervisor that runs directly on x86 hardware instead of on top of an operating system. It was distributed in RHEL 5.4 in a package called Red Hat Enterprise Virtualization Hypervisor (RHEV-H). With a memory footprint of only 128MB, it can easily be started from flash or a network drive. Hands-on Labs In this Hands-on Labs module, you will learn how to install RHEL6 from DVD ISO. You’ll also learn how to perform post-installation configuration e.g., upgrade the system with new patches and bug fixes, configure static IP address from dynamic one, change the computer hostname, modify hosts file, perform ping test among others. You’ll also learn Webmin as part of your arsenal. In this Hands-on Lab assignment you’ll have an opportunity to install LAMP: Apache2 (httpd), MySQL server, PostgreSQL server PHP. This also include: FTP server, NFS server, JDK6, Tomcat7 and Ant. I’ll also show you how to install JBoss AS 6.0 and the bundled option JBoss + Portal Bundle. Other assignments include installing DNS server, DHCP

Page 5: 46195442 Step by Step Guide RHEL6 Server Installation and Administration

Global Open Versity ICT Labs Step-By-Step Guide RHEL 6 Server Installation & Administration v1.4

April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada www.globalopenversity.org ICT203 – Mastering CentOS-5 RHEL 5/6 Server Administration

4

server and other assignments. The entire lab training was performed on VMware, however, do feel free to use any other virtual machine as desired for your lab session.

Part 1: Install RHEL 6 Server

1. Point your browser to RHEL6 and download DVD ISO 2. Burn the ISO to DVD and used it to install RHEL6. 3. Insert the DVD into the DVD device and start the installation process which should come to the screen

shown in Fig. 1.

Fig. 1: Hit the <ENETER> key to start loading & installing RHEL 6 4. From Fig. 2, if this your first time to use this RHEL6 CD/DVD then select OK, and press the <ENETER>

key, to test the CD media and check & verify that it was not in anyway damaged or corrupted during the download or burning stages. Otherwise click Skip to continue.

Page 6: 46195442 Step by Step Guide RHEL6 Server Installation and Administration

Global Open Versity ICT Labs Step-By-Step Guide RHEL 6 Server Installation & Administration v1.4

April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada www.globalopenversity.org ICT203 – Mastering CentOS-5 RHEL 5/6 Server Administration

5

Fig. 2 5. Next, you should see the screen like shown in Fig. 3.

Fig. 3

6. Next, you should see the screen like shown in Fig. 4. Click Next to continue.

Page 7: 46195442 Step by Step Guide RHEL6 Server Installation and Administration

Global Open Versity ICT Labs Step-By-Step Guide RHEL 6 Server Installation & Administration v1.4

April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada www.globalopenversity.org ICT203 – Mastering CentOS-5 RHEL 5/6 Server Administration

6

Fig. 4

7. From Fig. 5, select the language you desired to use during installation process, and then click Next.

Fig. 5

Page 8: 46195442 Step by Step Guide RHEL6 Server Installation and Administration

Global Open Versity ICT Labs Step-By-Step Guide RHEL 6 Server Installation & Administration v1.4

April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada www.globalopenversity.org ICT203 – Mastering CentOS-5 RHEL 5/6 Server Administration

7

8. From Fig. 6, select the appropriate keyboard for the system as desired, and then click Next.

Fig. 6

9. From Fig. 7, select “Specialized Storage Devices”, or change as desired, click Next to continue

Fig. 7

Page 9: 46195442 Step by Step Guide RHEL6 Server Installation and Administration

Global Open Versity ICT Labs Step-By-Step Guide RHEL 6 Server Installation & Administration v1.4

April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada www.globalopenversity.org ICT203 – Mastering CentOS-5 RHEL 5/6 Server Administration

8

10. From Fig. 8, select the drive to install your RHEL6, or change as desired. You have the option to install Firmware RAID, Multipath Devices or Other SAN Devices. Click Next to continue

Fig. 8 11. From Fig. 9, read the warning on "Re-initialize all", to continue. Note: the warning

“REINITIALIZATION WILL CAUSE ALL DATA TO BE LOST!”

Fig. 9

Page 10: 46195442 Step by Step Guide RHEL6 Server Installation and Administration

Global Open Versity ICT Labs Step-By-Step Guide RHEL 6 Server Installation & Administration v1.4

April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada www.globalopenversity.org ICT203 – Mastering CentOS-5 RHEL 5/6 Server Administration

9

12. From Fig. 10, under Hostname, enter the hostname "rhel6.govsystemhost.com", click Next.

Fig. 10 13. From Fig. 11, click into map to choose region as desired or accept the default, and then click Next.

Fig. 11

Page 11: 46195442 Step by Step Guide RHEL6 Server Installation and Administration

Global Open Versity ICT Labs Step-By-Step Guide RHEL 6 Server Installation & Administration v1.4

April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada www.globalopenversity.org ICT203 – Mastering CentOS-5 RHEL 5/6 Server Administration

10

14. From Fig. 12, enter & confirm root password e.g., "mysecretpass" and then click Next.

Fig. 12

15. Follow the link below to access the full document. The full document has moved to Docstoc.com. You can access and download it from here:

• Step-By-Step Guide RHEL 6 Server Installation & Administration v1.0 OR

• http://www.docstoc.com/docs/68342875/Step-By-Step-Guide-RHEL6-Server-Installation-and-Administration

Mastering CentOS-5 / RHEL 5/6 Server Administration and System Integration Training - ICT203

You can now register and take our superb Mastering CentOS-5 /RHEL 5/6 Server Administration. This Training cover compete server installation, administration and system integration from simple task to cloud computing with Eucalyptus and OpenNebula cloud.ICT203 – Mastering CentOS-5 /RHEL 5/6 Training ----------------------------------------------- Kefa Rabah is the Founder of Global Technology Solutions Institute. Kefa is knowledgeable in several fields of Science & Technology, Information Security Compliance and Project Management, and Renewable Energy Systems. He is also the founder of Global Open Versity, a place to enhance your educating and career goals using the latest innovations and technologies.

Fellow us on Twitter: Global Open Versity and Kefa Rabah A GOV Open Access Technical Academic Publications Enhancing education & empowering people worldwide through eLearning in the 21st Century