centOS7无法连接外网 解决办法: vim /etc/resolv.conf 加入: nameserver 8.8.8.8 nameserver 8.8.4.4 search localdomain 解决办法2: systemctl restart network