CentOS system text interface to start the network card and modify the DNS address method

Source: Internet
Author: User
Tags centos nameserver

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.

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.