CentOS 7.0 System Installation configuration steps detailed

Source: Internet
Author: User
Tags centos
Description
As of the current CentOS 7.x latest version of CentOS 7.0, the following describes the CentOS 7.0 of the specific installation configuration process
Server-related settings are as follows:
Operating system: CentOS 7.0 64-bit
IP Address: 192.168.21.128
Gateway: 192.168.21.2
dns:8.8.8.8 8.8.4.4
Note:
Production server if it is large memory (more than 4G memory), it is recommended to install the 64-bit version Centos-7.0-1406-x86_64-dvd.iso
I. Installation of CentOS 7.0
After the system is successfully booted, the following interface appears
Interface Description:
Install CentOS 7 Installation CentOS 7
Test this media & install CentOS 7 testing installation files and installing CentOS 7
Troubleshooting Repair Failure
Here, select the first item, install CentOS 7, enter the following interface
System Yun-wei Www.111cn.net warm reminder: qihang01 original Content © Copyright, reproduced please indicate the source and the original chain
Select language: Chinese-Simplified Chinese (China) #正式生产服务器建议安装英文版本
Go on
Select-System-install location, go to disk partition interface
Select-Other storage options-partitions-I want to configure the partition, click "Finish" in the upper left corner, and enter the following interface
System Yun-wei Www.111cn.net warm reminder: qihang01 original Content © Copyright, reproduced please indicate the source and the original chain
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
System Yun-wei Www.111cn.net warm reminder: qihang01 original Content © Copyright, reproduced please indicate the source and the original chain
Continue to point "+" in the lower left corner
mount point:/
Expected Capacity: 18.43GB #剩余所有空间
Add mount points as shown in the following illustration
Click "Finish" in the top left corner to enter the following interface
Accept the changes and go to the following interface
Start installation #注意 software-Software selection, the default is minimal installation, that is, do not install the desktop environment, you can set yourself.
Enter the following interface
Select-User Set-root password, enter the following interface
Set Root password
If the password length is less than 8 digits, 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
Point 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.0 installed after the default is not automatically open the network connection!
cd/etc/sysconfig/network-scripts/#进入网络配置文件目录
VI ifcfg-eno16777736 #编辑配置文件, add modify the following content
hwaddr=00:0c:29:8d:24:73
Type=ethernet
Bootproto=static #启用静态IP地址
Defroute=yes
Peerdns=yes
Peerroutes=yes
Ipv4_failure_fatal=no
Ipv6init=yes
Ipv6_autoconf=yes
Ipv6_defroute=yes
Ipv6_peerdns=yes
Ipv6_peerroutes=yes
Ipv6_failure_fatal=no
name=eno16777736
Uuid=ae0965e7-22b9-45aa-8ec9-3f0a20a85d11
Onboot=yes #开启自动启用网络连接
ipaddr0=192.168.21.128 #设置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! #保存退出
Shutdown-r now #重启系统
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.