Step by step to install CentOS 6.6

Source: Internet
Author: User

Step by step to install CentOS 6.6

Note:

The latest version of CentOS 6.x is CentOS 6.6. The following describes how to install and configure CentOS 6.6.

The server settings are as follows:

Operating System: CentOS 6.6 64-bit

IP Address: 192.168.21.129

Gateway: 192.168.21.2

DNS: 8.8.8.88.8.4.4

Note:

CentOS 6.6 system images are available in 32-bit and 64-bit versions, as well as minimal versions specially optimized for servers.

If the production server is large memory (4 GB memory or above), it is recommended to install the CentOS-6.5-x86_64-minimal.iso version

Appendix: CentOS 6.6

32-bit & 64-bit version: http://www.linuxdown.net/CentOS/2014/1029/3417.html

1. To enable the image installation mode, the computer memory of CentOS 6.6 must be equal to or greater than 628 MB (Minimum Memory 628 MB;

2. CentOS 6.6 system installation methods include: Graphical installation mode and text installation mode;

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

5. CentOS 6.6 systems run in the following ways: text mode with graphic interface, graphical mode that can be operated with the mouse, without graphical interface, and direct command line operation (the CentOSminimal version runs in text mode by default, there is no custom option for the system running mode during system installation );

1. Install CentOS 6.6

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:

System O & M www.osyunwei.com reminder: qihang01 original content©Copyright. For more information, see the source and source text chain.

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

System O & M www.osyunwei.com reminder: qihang01 original content©Copyright. For more information, see the source and source text chain.

Set the host name, which is the default value. After installation, modify the host name.

Next

Time zone Selection: Asia/Shanghai

"System clock user UTC" # deselect the preceding check box. The UTC time is not 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 20 GB. Now we can customize the partition.

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

The partition here is as follows:

Hard Disk total 20 GB

Swap #2048 M, usually set to 2 times the memory

/# 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.

Select Free partitions and click Create

Select Standard Partition, and click Create

File System Type: swap

The Size is 2048.

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

Click "Format" to Format

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

Default

Next

Start Installation

Installation Complete

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

After the restart, the following logon page appears.

Enter the root account and password to log on to the system, as shown in:

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

So far, CentOS 6.6 has been installed and configured

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.