Centos7:python installation. Yum Install software tips cannot find a valid baseurl for repobase7x86_64

Source: Internet
Author: User

method One,   1, open vi/etc/sysconfig/network-scripts/ifcfg-enp4s0 (each machine may be different, but the format will be "Ifcfg-e ..."). But the content contains:
  1. <strong>type=Ethernet #网卡类型
  2. device=eth0 #网卡接口名称
  3. onboot=No #系统启动时是否自动加载
  4. bootproto= static#启用地址协议--static: Static protocol--BOOTP Protocol--DHCP Protocol
  5. Ipaddr=192.168.1.11 #网卡IP地址
  6. netmask=255.255.255.0 #网卡网络地址
  7. gateway=192.168.1.1 #网卡网关地址
  8. Hwaddr=00:0c:29:13:5d:74 #网卡设备MAC地址
  9. broadcast=192.168.1.255 #网卡广播地址</strong>

The contents of the amendment are as follows:

    1. onboot=Yes
    2. nm_controlled=No
    3. bootproto=DHCP
    4. dns1=8.8.8.8
    5. dns2=4.2.2.2

(Press the I key to enter DNS1 ,DNS2 ,nm_controlled and modify Bootproto,onboot; then press ESC, and then enter ": Wq" to save the exit )

2. Restart the network: Service network restart

Centos7:python installation. Yum Install software tips cannot find a valid baseurl for repobase7x86_64

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.