CentOS 7.0 system installation and configuration steps and network opening configuration detailed

Source: Internet
Author: User
CentOS 7.0 System Installation configuration steps detailed Note: As of the current centos 7.x 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: 19 2.168.21.2 dns:8.8.8.8 8.8.4.4 Note: If the production server is large memory (more than 4G memory), it is recommended to install the 64-bit version Centos-7.0-1406-x86_64-dvd.iso one, install CentOS 7.0 after successfully booting the system , the following interface description appears: Install CentOS 7 Installation centos 7 test this media & Install centos  7 testing installation files and install 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, Reprint please specify the source and source text chain Select language: Chinese-Simplified Chinese (China)    #正式生产服务器建议安装英文版本 continue to select-System-installation location, access to the disk partition interface selection-Other storage options-partitions-I want to configure the partition, point left corner of the "Finish", Enter the following interface System Yun- www.111cn.net   Warm reminder: qihang01 original Content © Copyright, reproduced please specify the source and the original chain partition before planning good swap #交换分区, generally set to twice times the memory/#剩余所有空间 Note: The production server recommends dividing a separate/data partition to store the "+" mount point in the lower-left corner of the data point: Swap expected Capacity: 2048 add mount point, as shown in the following figure system operation Dimension  www.111cn.net   Warm reminder: qihang01 original Content © Copyright, reproduced please indicate the source and the original chain continue to point to the lower left corner of the "+" mount point:/expected Capacity: 18.43GB #剩余所有空间 Add mount point, as shown in the above point in the upper left corner of the "Finish", enter the following interface to accept the change, into 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 selection-user settings-root password, enter the following interface set ROOT password If the password length is less than 8 digits, will be prompted to press "completed" two times to confirm, installation continues to install after the installation is completed, will enter the following interface point restart system restart into the login interface account input root Enter and enter the above set the root password return system login success two, set IP address, gateway DNS Note: CentOS 7.0 is not automatically turned on when the network connection is installed by default. cd /etc/sysconfig/network-scripts/  #进入网络配置文件目录 vi  ifcfg-eno16777736   #编辑配置文件, add modify the following 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 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 host name to www hostname  www   #设置主机名为www vi/etc/hostname   #编辑配置文件 www    #修改localhost. LocaldOmain for www:wq!   #保存退出 vi/etc/hosts  #编辑配置文件 127.0.0.1   localhost  www     #修改localhost. Localdomain for 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.