1、编辑DNS配置文件 vim /etc/resolv.conf 2、添加DNS配置信息: nameserver 47.106.30.119 3、然后执行重启 systemctl restart network