How to install and configure RHEL 6.5 in linux

Source: Internet
Author: User
Tags custom name

This article will introduce you to a graphic tutorial on RHEL 6.5 installation and configuration in linux, hoping to help you.

Note:

The latest version of RHEL 6.x is RHEL 6.5. The following describes the specific installation and configuration process of RHEL 6.5.

The server settings are as follows:

Operating System: RHEL 6.5 64-bit

IP Address: 192.168.0.54

Gateway: 192.168.0.1

DNS: 8.8.8.8 8.4.4

Note:

The rhel-server-6.5 system image has 32-bit and 64-bit versions, if the production server is large memory (4 GB memory or above)

Install a 64-bit rhel-server-6.5-x86_64-dvd.iso

1. Install RHEL 6.5

Boot the system with a CD, and the following interface will appear.

System O & M www. bKjia. c0m reminder: qihang01 original content©All rights reserved. For more information, see the source and original link.

Interface Description:

Install or upgrade an existing system Install or upgrade the existing system

Install system with basic video driver

Rescue installed system enters system Repair Mode

Boot from local drive exit installation start from hard disk

Memory test Memory Detection

Select the first option, install or upgrade the existing system, and press Enter.

If you have a question about whether to test the CD media, select "Skip" to Skip the test.

The following interface is displayed:

Next

Select the language: English (English) # we recommend that you install the English version on the production server.

Next

Select U. S. English as the keyboard.

Next

Select item 1, basic storage device

Next

Select the first item: Yes, ignore all data

Next

Set the host name, which can be customized by default.

Next

Time zone Selection: Asia/Shanghai

Cancel the check box before "System clock user UTC". The UTC time is not used.

Next

Set root Password

Next

NOTE: If your password is too simple, the system will automatically prompt: Your password is not safe enough, too simple/systematic

Select "Use Anyway ".

Next

Select the last item and Create M Layout to Create a Custom Layout.

Next

We can see the capacity of the hard disk. Here we show 16 GB. Now we have customized partitions.

Note: before partitioning, you must plan the partitions first.

The partition here is as follows:

16 GB hard disk in total

Swap 2G # generally set to 2 times of memory

/14 GB # all remaining space

Note: For servers used for formal production, you must partition the data disk separately to ensure data integrity in case of system problems.

For example, you can divide another/data to store data.

Select Free partitions, click Create, select Standard partitions, and click Create.

File System Type: swap

The Size is 1024.

Other options are available by default.

OK

Continue to select Free partitions, click Create

Mount point :/

File System Type: ext4

Select "use all available space"

Other options are available by default.

OK

After creating the partition, as shown in, click Next

Click "Format" to Format

Select "Write changes to disk" to Write the changes to the disk.

Next by default

Default Value: first, basic Server

If you are studying for the first time, we recommend that you select: Desktop

If it is used as the official server, we recommend that you use the minimum value of Minimal.

Here: Minimal

Next

Start Installation

Installing

Installation Complete

Click "Reboot" to Reboot and the system restarts automatically.

After the restart, the following logon page appears.

2. Set IP addresses and gateway DNS

Note: The network connection is not automatically enabled after RHEL 6.5 is installed by default!

Enter account root

Enter the password set during installation and log on to the system.

Vi/etc/sysconfig/network-scripts/ifcfg-eth0 # edit the configuration file and add the following changes

BOOTPROTO = static # enable static IP addresses

ONBOOT = yes # enable network connection automatically

IPADDR = 192.168.0.54 # Set the IP address

NETMASK = 255.255.255.0 # Set the subnet mask

GATEWAY = 192.168.0.1 # Set GATEWAY

DNS1 = 8.8.8.8 # Set the primary DNS

DNS2 = 8.8.4.4 # Set backup DNS

: Wq! # Save and exit

Service network restart # restart the network connection

Ping www. bKjia. c0m # test whether the network is normal

Ifconfig # view IP addresses

3. Use the system image file to configure the local yum Source

1、use winscp.exe tool to upload the system image file rhel-server-6.5-x86_64-dvd.iso to the/usr/local/src directory

2. Use putty.exe to remotely connect to the RHEL Server

3. Mount the System Image File

Mkdir/media/cdrom # create an image file Mount directory

Cd/usr/local/src # enter the system image file storage directory

Ls # List Directory files. You can see the uploaded system image files.

Mount-t iso9660-o loop/usr/local/src/rhel-server-6.5-x86_64-dvd.iso/media/cdrom # mount System Image

Cd/media/cdrom # enter the Mount directory. Run the ls command to see that a file already exists.

Note:Umount/media/cdrom # uninstall the system image

4. Set automatic mounting of system image files upon startup

Vi/etc/fstab # Add the following code. Enable automatic mounting upon startup

/Usr/local/src/rhel-server-6.5-x86_64-dvd.iso/media/cdrom iso9660 ults, ro, loop 0 0

: Wq! # Save and exit

Note: You can use df-T to view devices on the iso9660.

5. Configure the local yum Source

Cd/etc/yum. repos. d/# enter the yum configuration directory

Touch rhel-media.repo # create a yum Profile

Vi rhel-media.repo # edit the configuration file and add the following content

[Rhel-media]

Name = Red Hat Enterprise Linux 6.5 # custom name

Baseurl = file: // media/cdrom # local disk Mount path

Enabled = 1 # enable yum source. If 0 is disabled, 1 is enabled.

Gpgcheck = 1 # Check the GPG-KEY, 0 is not checked, 1 is checked

Gpgkey = file: // media/cdrom/RPM-GPG-KEY-redhat-release # path to the GPG-KEY

: Wq! # Save and exit

6. Use the yum command to automatically install the software.

Yum clean all # Clear yum Cache

Yum makecache # cache software package information in the local yum Source

Yum install httpd # install apache

Chkconfig httpd on # Set to boot

/Etc/init. d/httpd start # start apache

Vi/etc/sysconfig/iptables # configure the firewall and enable port 80

-A input-m state -- state NEW-m tcp-p tcp -- dport 80-j ACCEPT # Allow port 80 to pass the Firewall

: Wq! # Save and exit

/Etc/init. d/iptables restart # restart the firewall to make the configuration take effect.

Open http: // 192.168.0.54/, as shown in:

Extended reading: Set the host name to www

Hostname www # Set the host name to www

Vi/etc/sysconfig/network # edit the configuration file

HOSTNAME = www # modify localhost. localdomain TO www

: Wq! # Save and exit

Vi/etc/hosts # edit the configuration file

127.0.0.1 www localhost # modify localhost. localdomain TO www

: Wq! # Save and exit

Shutdown-r now # restart the system

At this point, the graphic tutorial of RHEL 6.5 system installation and configuration has been completed from:Osyunwei.com

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.