Win7 operating system, VMware installation centos6.2, in order to practice the WWW server configuration, using the text interface, has been considering a problem, this Nic how to start it? Anyway, I feel that learning CentOS is much smoother than before. The more you learn, the more it tastes, the more challenging it is to configure the text interface, and the more fulfilling it is for me to CentOS than to configure the graphical interface of Windows.
After entering the CentOS, my steps are as follows:
Cd/etc/sysconfig/network-scripts
Vim Ifcfg-eth0
Change onboot= "No" to onboot= "yes"
: Wq Save Exit
Restart Network Service Network restart
You can also use Ifconfig to see if the network card is started, if it starts, you will generally see a eth0, if not started, show only lo, generally is the NIC does not start, start the network card:
Ifconfig eth0 up
Turn off the NIC Ifconfig eth0 down
Linux Modify DNS Address:
DNS is the server used to resolve the backend IP of a domain name. Linux, like Windows, can customize DNS addresses, and is easy to modify. When Linux is used as a Web server, and a slow running of WordPress queries, you can try to modify a fast DNS server to resolve the above issues.
One, modify the configuration file
Vi/etc/resolv.conf
Ii. Modification by format
NameServer 8.8.4.4
NameServer 8.8.8.8
In the above format to Google (google) domain Name System IP, save can be effective.