ifconfig
查看网卡状态是不是active
ping 127.0.0.1
能够ping成功说明网卡是好的
外网无法访问
cannot resolve ···
一般是dns没有配好。
ee /etc/resolv.conf
参考
[1]http://www.360doc.com/content/19/0708/13/51761268_847429150.shtml
[2]https://www.cnblogs.com/gailuo/p/9483958.html
[3]https://blog.csdn.net/wzxgoogle/article/details/8301395
网友评论