Basic configuration after Centos installation

  
 

Before we have installed Centos, we must configure ip for Centos before configuring Centos. There are many ways to configure ip under Linux. There are a lot of information on this website. The following one meter sunshine talks about the most commonly used configuration network. The way the address is. Open the configuration interface with setup

Select network configuration and press Enter.

When you see this picture, select eth0 and press Enter.

Remove use DHCP*, below Ip can be configured after configuration, press OK directly to determine the service network restart to restart the network service. The second run vi /etc/sysconfig/network-scripts/ifcfg-eth0DEVICE=eth0BOOTPROTO=noneHWADDR=00:0c:29:3d :6e:92 MAC address ONBOOT=yesTYPE=EthernetNETMASK=255.255.255.0 Subnet mask IPADDR=192.168.4.64 IP address GATEWAY=192.168.4.254 Gateway ip run vi /etc/resolv.confsearch localdomainnameserver 202.101.172.47nameserver 202.101.172.35nameserver 221.12.1.228 After configuring the DNS, you can go online. Of course, there is no graphical interface in the Linux server installation mode, so you can use elinks http://www.my-china.org.cn to view the website

yum install yum-fastestmirror yum-presto

This command is used to install the fastestmirror plugin. This plugin will automatically select the fast mirror site to download and finally use the yum update command to update the system

yum update




Copyright © Windows knowledge All Rights Reserved