CentOS7.0 is a very new version. many of my friends don't know how to install and configure CentOS7.0, because centos7.0 and earlier versions have greatly improved. Note: Up to now, the latest CentOS7.x version is CentOS7.0. The following describes the specific installation and configuration process of CentOS7.0. after the installation is completed today, I know that centos does not have a visual interface. Enter the logon interface account and enter root
CentOS 7.0 is a very new version. many friends do not know how to install and configure CentOS 7.0, because CentOS has greatly improved with previous versions.
Note: Up to now, the latest version of CentOS 7.x is CentOS 7.0. The following describes the specific installation and configuration process of CentOS 7.0.
After the installation is completed today, I realized that centos does not have a visual interface.
Enter the logon page
Enter the root account and press enter.
Enter the root password set above and press enter.
System logon successful
Set IP address and gateway DNS
Note: After CentOS 7.0 is installed by default, network connections are not automatically enabled!
Cd/etc/sysconfig/network-scripts/# enter the network configuration file directory
Vi ifcfg-eno16777736 # Edit the configuration file and add to modify the following content
HWADDR = 00: 0C: 29: 8D: 24: 73 TYPE = Ethernet BOOTPROTO = static # enable static IP address DEFROUTE = yes PEERDNS = yes PEERROUTES = yes route = no route 6init = yes route 6_autoconf = yes route 6_defroute = yes route 6_peerdns = yes route = no NAME = eno16777736 UUID = ae0965e7-22b9-45aa-8ec9-3f0a20a85d11 ONBOOT = yes # enable automatic network connection IPADDR0 = 192.168.21.128 # set IP address PREFIXO0 = 24 # set subnet mask GATEWAY0 = 192.168.21.2 # set gateway DNS1 = 8.8.8.8 # Set Primary DNS DNS2 = 8.8.4.4 # Set backup DNS: wq! # Save and Exit service network restart # restart the network and ping www.baidu.com # test whether the network is normal
Ip addr # View ip addresses
Set the host name to www
Hostname www # set the host name to www
Vi/etc/hostname # Edit the configuration file
Www # modify localhost. localdomain to www
: Wq! # Save and exit
Vi/etc/hosts # Edit the configuration file
127.0.0.1 localhost www # modify localhost. localdomain to www
: Wq! # Save and exit
Shutdown-r now # restart the system