Linux报错ping: https://www.baidu.com: Name or service not known
来源:互联网 发布:ppt图表数据修改不了 编辑:程序博客网 时间:2024/05/01 05:07
ping: https://www.baidu.com: Name or service not known
没有默认的网关,需要添加
[root@localhost104 softwares]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 0.0.0.0 0.0.0.0 UG 0 0 0 ens33
169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 ens33
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 ens33
192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0
[root@localhost104 softwares]# cat /etc/resolv.conf
# Generated by NetworkManager
nameserver 8.8.8.8
nameserver 114.114.114.114
search localhost104
[root@localhost104 softwares]#
[root@localhost104 softwares]# grep GATEWAY /etc/sysconfig/network-scripts/ifcfg*
/etc/sysconfig/network-scripts/ifcfg-ens33:GATEWAY=192.168.0.1
[root@localhost104 softwares]#
[root@localhost104 softwares]# grep hosts /etc/nsswitch.conf
#hosts: db files nisplus nis dns
hosts: files dns myhostname
[root@localhost104 softwares]#
[root@localhost104 softwares]# route add default gw 192.168.0.1
[root@localhost104 softwares]#
[root@localhost104 softwares]#
[root@localhost104 softwares]#
[root@localhost104 softwares]# ping www.baidu.com
PING www.a.shifen.com (14.215.177.38) 56(84) bytes of data.
64 bytes from 14.215.177.38 (14.215.177.38): icmp_seq=1 ttl=55 time=7.04 ms
64 bytes from 14.215.177.38 (14.215.177.38): icmp_seq=2 ttl=55 time=8.16 ms
^Z
[5]+ Stopped ping www.baidu.com
[root@localhost104 softwares]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 ens33
169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 ens33
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 ens33
192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0
- Linux报错ping: https://www.baidu.com: Name or service not known
- Linux报错ping: https://www.baidu.com: Name or service not known;centos7 无法启动网络(service network restart
- ping: www.baidu.com: Name or service not known centos7 -bash: ifconfig: command not found
- linux ping报错Name or service not known
- linux CentOS/Ubuntu ping报错Name or service not known
- Centos7 安装后 ping baidu.com 网络连接不通报错name or service not know解决方法
- telnet报错:Name or service not known: Illegal seek
- linux 启动tomcat报错:localhost Name or service not known
- centos 7.3 设置静态IP或ping 报name or service not known
- Apache启动报错Name or service not known,`127.0.0.1' does NOT match server name!
- Name or service not known
- wget https://www.baidu.com 报错ERROR: certificate common name `baidu.com' doesn't match requested host
- supervisorctl报错"error: <class 'socket.gaierror'>, [Errno -2] Name or service not known"的解决方法
- cloudera安装报错 socket.gaierror: [Errno -2] Name or service not known
- dubbo启动报错 java.net.UnknownHostException: bogon: bogon: Name or service not known
- zuul报错java.net.UnknownHostException: 4d59d509898a: Name or service not known
- hadoop启动时,报ssh: Could not resolve hostname xxx: Name or service not known
- Linux环境下 ping www.baidu.com
- socket 数据预留和对齐(skb_reserve()、skb_put()、skb_push())
- inline-block IE兼容处理
- java常见的设计模式
- wireshark 抓取的tcp 数据报文
- C语言——实例005 输入三个整数x,y,z,请把这三个数由小到大输出。
- Linux报错ping: https://www.baidu.com: Name or service not known
- nginx搭建
- libevent中的时间管理
- 下载安装python3.5
- 程序员用一个爬虫的案例,多线程的掌握
- 暴力求解法--生成全排列
- 动态规划----求最长上升子序列
- HDU 6036 Division Game
- E