Linux System Common Knowledge

First, check the system version

1, see the linux kernel version

#cat /etc/redhat-release

Second, set up the network information

1, enter the card

#cd /etc/sysconfig/network-scripts
#ls
#vim eth0

 

 2, set up the network

 

 

 

Third, set the dns resolve

1, resolved locally

#vim /etc/hosts

 

 2, set the DNS server

#vim /etc/resolv.conf

 

Guess you like

Origin www.cnblogs.com/lizhewei/p/11703154.html