Problems with CentOS

Source: Internet
Author: User

1.DNS problem, causing Yum to have no source

echo "NameServer 8.8.8.8" >>/etc/resolv.conf

2.CentOS 7 "ifconfig" command not found after minimal installation

  1. IP addr
  2. Yum Install net-tools

3. Configure network issues.

Setup method for automatic activation of eth0 under Linux at system startup
Method One,
1, NTSYSV
Determine if the network front tick?!

2, Vi/etc/sysconfig/network
OK: Networking=yes

3,/etc/sysconfig/network-scripts/ifcfg-eth0
Determine the above file:
Onboot=yes

Method Two,
# Vi/etc/sysconfig/network-scripts/ifcfg-eth0
All say there is onboot=yes this sentence can be activated automatically, but the configuration file is clearly there is still no effect, the boot always have to manually to activate.
Then, in the/etc/rc.d/rc.local file, add
Ifup eth0
Or
Ifconfig eth0 up
Eth0 is the network card to be activated.

Description
Method One, basically can solve the problem.
If the method is not after the configuration, then consider using method two, this method is more vigorous, please think twice.

Problems with CentOS

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.