Centos 6.5 system installation and configuration graphic tutorial

Source: Internet
Author: User

Note:

The latest version of centos 6.x is centos 6.5. The following describes how to install and configure centos 6.5.

The server settings are as follows:

Operating System: centos 6.5 64-bit

IP Address: 192.168.21.129

Gateway: 192.168.21.2

DNS: 8.8.8.8 8.4.4

Note:

Centos 6.5 system images are available in 32-bit and 64-bit versions. If the production server has large memory (4 GB memory or above)

Install a 64-bit CentOS-6.5-x86_64-bin-DVD1.iso

Appendix: centos 6.5

32-bit:

Http://mirror.centos.org/centos/6.5/isos/i386/CentOS-6.5-i386-bin-DVD1to2.torrent

64-bit:

Http://mirror.centos.org/centos/6.5/isos/x86_64/CentOS-6.5-x86_64-bin-DVD1to2.torrent

1. centos 6.5 system image has two, the installation system only to the first mirror, namely CentOS-6.5-i386-bin-DVD1.iso (32-bit) or CentOS-6.5-x86_64-bin-DVD1.iso (64-bit), the second image is the system comes with software installation package;

2. To enable the image installation mode, the computer memory for installing centos 6.5 must be equal to or greater than 628 MB (Minimum Memory 628 MB;

3. centos 6.5 text installation mode does not support custom partitions. We recommend that you use the image installation mode;

4. centos 6.5 system installation methods include: Graphical installation mode and text installation mode;

5. centos 6.5 runs in the following ways: graphic mode with graphical interface, graphical mode with mouse operation, and text mode without graphic interface, directly using command line operation (specific system operation mode, can be customized during system installation );

1. Install centos 6.5

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

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 is the default value. After installation, modify the host name.

Next

Time zone: ETC/GMT + 8 Beijing Time Zone

"System clock user UTC" is checked and UTC time is used.

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 ".

Strong and complex passwords must be set in the production environment

Next

Select the last item and create M layout to create a custom partition.

Next

We can see the disk capacity. Here I show 25 GB. Now we can customize the partition.

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

The partition here is as follows:

A total of 25 GB hard disk

/Boot #128 m

/# All remaining space

Note:

For servers in formal production, remember to partition the data disk separately to ensure data integrity in case of system problems. For example, you can divide another

/Data is used to store data.

There is no swap partition. For a large memory server, you do not need to set a swap partition, or after determining the memory size required by the system,

Add swap

Select free partitions and click Create

Select standard partition, and click Create

Mount point:/boot

File System Type: ext3

The size is 128.

Other options are available by default.

OK

Continue to select free partitions, click Create

Select standard partition, and 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

Yes by default # The system prompts that no swap partition has been created and will be created later.

Click "format" to format

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

Default

Next

Default: first, desktop Desktop

Here we select: Minimal minimum

Next

Note: Click customize now to install the required development kit software,

You can also install the software package through the yum source, rpm, or compilation as needed.

Start Installation

Installation Complete

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

After the restart, the following logon page appears.

System Installation Complete

2. Set IP addresses, gateways, and DNS

Conventions:

The first Nic is the Internet

The second Nic is the Intranet (the Intranet must be configured on the second Nic for machines without the Internet)

Note: After centos 6.5 is installed by default, network connections are not automatically enabled!

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.21.129 # Set the IP address

Netmask = 255.255.255.0 # Set the subnet mask

Gateway = 192.168.21.2 # Set the Gateway

Dns1 = 8.8.8.8 # Set the primary DNS

Dns2 = 8.8.4.4 # Set backup DNS

Ipv6init = No # Disable Ipv6

: WQ! # Save and exit

Service ip6tables stop # Stop IPv6 Service

Chkconfig ip6tables off # disable IPv6 boot

Service Yum-updatesd stop # disable automatic system update

Chkconfig Yum-updatesd off # enable startup prohibited

Service Network restart # restart the network connection

Ifconfig # view IP addresses

3. Set the Host Name

Conventions:

Host Name naming rules: business. Data Center. Master/Slave. Domain Name

Set the host name to bbs.hz.m.osyunwei.com.

1. hostname "bbs.hz.m.osyunwei.com"

# Set the host name to bbs.hz.m.osyunwei.com.

2. VI/etc/sysconfig/Network # edit the configuration file

Hostname = bbs.hz.m.osyunwei.com

# Modify localhost. localdomain to bbs.hz.m.osyunwei.com

: WQ! # Save and exit

3. VI/etc/hosts # edit the configuration file

127.0.0.1 bbs.hz.m.osyunwei.com localhost

# Modify localhost. localdomain to bbs.hz.m.osyunwei.com

: WQ! # Save and exit

Shutdown-R now # restart the system

4. Add swap partitions

After determining the memory used by the server, we need to increase the swap space by MB.

Specific operations:

1. dd If =/dev/Zero of =/tmp/swap BS = 1 m COUNT = 1024 M # create a file block of m

2. mkswap/tmp/swap # create a swap file

3. Swapon/tmp/swap # activate the swap file

4. Swapon-s # view swap

5. Modify the/etc/fstab file and add the following content to enable automatic startup during system boot.

VI/etc/fstab # Add the following code at the end

/Tmp/swap default 0 0

: WQ! # Save and exit

So far, centos 6.5 has been installed and configured

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.