Core installation and configuration of CentOS-7.0

Source: Internet
Author: User

I saw a variety of errors in installing CentOS-7.0 in the post bar before, I will write this centos 7 installation tutorial for beginners to refer.

We have two ways to install centos: boot through a CD and boot through a USB flash disk.

If you need to set the CD-ROM drive to the highest priority with a CD,

The USB flash drive sets the removable devices priority to the highest.

Note: After installation, remember to set hard drive to the maximum. If you still choose to enable the system to read the mobile device first, the system will read the device first when you connect to the mobile hard disk or the USB flash disk to restart the machine, causing the computer to fail to start normally.

I have installed windows before.

Centos 7 Interface

Select Option 1: Install

This is the language used in the installation process. By default, I chose us-English.

This interface

For the first (Date & time) time zone, we need to adjust it to our zone, which is generally Asia-China-Shanghai.

The second (keyboard) keyboard language is generally the default

The third operating language (Language Support) is generally the default English language.

The fourth (installation source) is the installation resource. Select the default value.

The fifth (software selection) software selection. By default, the installation is minimized and can be adjusted as needed. However, the installation is usually minimized by default. Then we can install the software as needed.

The sixth installation path (installation destination) must be set by yourself. Otherwise, you cannot enter the begin install

Network & hostname

Click installation destination to go to the page and click as shown in the figure.

In this interface, we need to set the partition to standard partition and then add three mount points swap,/data ,/, the size is 2048 (SWAp is generally set to twice the memory size), 2048 (this data is set by yourself), and the remaining size is left to the root. For more information, see

Click Done after setting.

Select accept changes

In this interface, we need to set the user name and password.

For example, user: Root Password: 123456

After installation, restart.

Host Name and IP configuration

Enter

12 vi /etc/hostname# Modify the host name after enteringonepiece  # Modified Host Name

Enter

123456789 cd /etc/sysconfig/network-scriptslltotal 212-rw-r--r--. 1 root root 362 Aug 21 15:19 ifcfg-eno16777736-rw-r--r--. 1 root root   254 Apr  2 11:30 ifcfg-lolrwxrwxrwx. 1 root root 24 Aug 21 09:57 ifdown -> ../../../usr/sbin/ifdown-rwxr-xr-x. 1 root root   627 Apr  2 11:30 ifdown-bnep-rwxr-xr-x. 1 root root  5553 Apr  2 11:30 ifdown-eth-rwxr-xr-x. 1 root root   781 Apr  2 11:30 ifdown-ippp

Here part of the screenshot we need to modify is the ifcfg-eno16777736

1234567891011121314151617181920212223 vi ifcfg-eno16777736HWADDR=00:0C:29:B4:96:FDTYPE=EthernetBOOTPROTO=static  # Set to static IPDEFROUTE=yesPEERDNS=yesPEERROUTES=yesIPV4_FAILURE_FATAL=noIPV6INIT=yesIPV6_AUTOCONF=yesIPV6_DEFROUTE=yesIPV6_PEERDNS=yesIPV6_PEERROUTES=yesIPV6_FAILURE_FATAL=noNAME=eno16777736UUID=447c84a6-6198-453e-a766-0b0ce54a17b8ONBOOT=yes # Enable Automatic Network ConnectionIPADDR=192.168.188.31# Setting IP addressesNETMASK=255.255.255.0 # Set Subnet MaskGATEWAY=192.168.188.2 # Set a gateway:wq!  # Save and exitservice network restart  # Restarting the networkshutdown-r now  # Restarting the system

We Log On Through securecrt

We can see that the host name and IP address have all changed to the one we set.

Now the installation and basic configuration of centos 7 are complete.

This article is only for cainiao who are new to Linux. I hope you will have some gains after reading this article.

Core installation and configuration of CentOS-7.0

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.