标签: centos

  • centos6 无法yum的解决办法

    sed -i “s|enabled=1|enabled=0|g” /etc/yum/pluginconf.d/fastestmirror.conf

    mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

    curl -o /etc/yum.repos.d/CentOS-Base.repo https://www.xmpan.com/Centos-6-Vault-Aliyun.repo

    yum clean all

    yum makecache

  • CentOS Linux解决Device eth0 does not seem to be present

    在VMware里克隆出来的CentOS Linux。。

    ifconfig…没有看到eth0.。然后重启网卡又报下面错误。

    故障现象:

    service network restart
    Shutting down loopback insterface:                                                                                                     [  OK  ]
    Bringing up loopback insterface:                                                                                                          [  OK  ]
    Bringing up interface eth0:  Device eth0 does not seem to be present,delaying initialization.                    [FAILED]

     

    解决办法:
    [root@c1node01 ~]# rm -rf /etc/udev/rules.d/70-persistent-net.rules
    [root@c1node01 ~]# reboot ………………
    打开/etc/udev/rules.d/70-persistent-net.rules
    记录下,eth0网卡的mac地址
    接下来,打开/etc/sysconfig/network-scripts/ifcfg-eth0
    将 HWADDR=的mac地址改成上面的mac地址

    最后,重启网络

    # service network restart