CentOS 7.2.1511 System installation Configuration Diagram tutorial

Source: Internet
Author: User
Tags centos

Description

As of the current CentOS 7.x latest version of CentOS 7.2.1511, the following describes the CentOS 7.2.1511 specific installation configuration process

Server-related settings are as follows:

Operating system: CentOS 7.2.1511

IP Address: 192.168.21.130

Gateway: 192.168.21.2

dns:8.8.8.8 8.8.4.4

Note:

The CentOS 7.x series has only 64-bit systems and no 32-bit. Production server recommends installing Centos-7-x86_64-minimal-1511.iso version

I. Installation of CentOS 7.2.1511

After the system is successfully booted, the following interface appears

Interface Description:

Install CentOS 7 #安装CentOS 7

Test This media & install CentOS 7 #测试安装文件并安装CentOS 7

Troubleshooting #修复故障

Here, select the first item, install CentOS 7, enter the following interface

Language selection interface, the official production server is recommended to install the English version.

Continue continue

Select-System system-installation location Installtion destination, access to the disk partition interface

Select-Other storage options other Storage options-partition partitoning-I want to configure partition I will configure partitioning,

"Done" in the upper-left corner of the point, enter the following interface

The new mount point uses the following partitioning scheme: standard standard Partition

Done

Before partitioning, plan ahead.

Swap #交换分区, generally set to twice times the memory

/#剩余所有空间

Note: The production server recommends dividing a separate/data partition to store data

The "+" number in the lower-left corner of the point

mount point: Swap

Expected Capacity: 2048

Add mount points as shown in the following illustration

Continue to point "+" in the lower left corner

mount point:/

Expected capacity: Leave blank #默认为剩余所有空间

Add mount points as shown in the following illustration

"Done" in the upper-left corner of the point, enter the following interface

Accept changes Accept Changes, enter the following interface

"Software Software"-"Software selection software SELECTION", we are using the minimal version, the default is to minimize the installation.

Start installation Begin installation

Enter the following interface

Select-User set username settings-root password, enter the following interface

Set Root password

If the password is less than 5 bits long, you will be prompted to press "finish" two times to confirm that the installation continues.

Once the installation is complete, it will enter the following interface

Restart reboot

System reboot

Enter Login interface

Account Input Root return

and enter the root password entry set above.

System Login Successful

Second, set IP address, gateway DNS

Description: CentOS 7.x installed after the default is not automatically open the network connection!

cd/etc/sysconfig/network-scripts/#进入网络配置文件目录

VI ifcfg-eno16777736 #编辑配置文件, add modify the following content

Bootproto=static #启用静态IP地址

Onboot=yes #开启自动启用网络连接

ipaddr0=192.168.21.130 #设置IP地址

Prefixo0=24 #设置子网掩码

gateway0=192.168.21.2 #设置网关

dns1=8.8.8.8 #设置主DNS

dns2=8.8.4.4 #设置备DNS

: wq! #保存退出

Service Network Restart #重启网络

Ping www.baidu.com #测试网络是否正常

IP addr #查看IP地址

Third, set the host name www

Hostname www #设置主机名为www

Vi/etc/hostname #编辑配置文件

www #修改localhost. Localdomain for www

: wq! #保存退出

Vi/etc/hosts #编辑配置文件

127.0.0.1 localhost www #修改localhost. Localdomain is www.

: wq! #保存退出

Four, the network card name eno16777736 change to Eth0

CentOS 7.x System network card naming rules are redefined, may be "eno167777xx", and so on, we will change the network card name to eth0 this.

1, cd/etc/sysconfig/network-scripts/

MV eno16777736 Ifcfg-eth0 #修改名称

VI eth0 #编辑

Name=eth0 #修改

Device=eth0 #修改

: wq! #保存退出

2, Vi/etc/sysconfig/grub #编辑

Add a "net.ifnames=0 biosdevname=0" to the "grub_cmdline_linux" variable

: wq! #保存退出

3, run the command: Grub2-mkconfig-o/boot/grub2/grub.cfg #重新生成grub配置并更新内核参数

4, add the rules of Udev

Create a network adapter rule "70-persistent-net.rules" in the "/ETC/UDEV/RULES.D" directory and write the following statement:

subsystem== "NET", action== "Add", drivers== "? *", attr{address}== "00:0c:29:dc:dd:ad", attr{type}== "1", kernel== "eth*" , name= "Eth0"

#ATTR {address}== "00:0c:29:dc:dd:ad" is the MAC address of the NIC

Cd/etc/udev/rules.d

VI 70-persistent-net.rules #添加

subsystem== "NET", action== "Add", drivers== "? *", attr{address}== "00:0c:29:dc:dd:ad", attr{type}== "1", kernel== "eth*" , name= "Eth0"

: wq! #保存退出

Shutdown-r now #重启系统

Nic has been changed to eth0

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.