1. 打开命令提示符(Windows)或终端(Mac/Linux)。
2. 输入命令`ping example.com`,其中`example.com`是你要ping的域名。
3. 按下回车键,等待一段时间,系统会发送数据包到目标域名,并显示回应时间(延迟)和数据包丢失的百分比。
4. 终止ping命令,可以按下Ctrl + C(Windows/Linux)或Command + C(Mac)。
5. 如果成功ping通了域名,你将看到类似以下的结果:
Reply from xxx.xxx.xxx.xxx: bytes=32 time=10ms TTL=128
Reply from xxx.xxx.xxx.xxx: bytes=32 time=11ms TTL=128
Reply from xxx.xxx.xxx.xxx: bytes=32 time=9ms TTL=128
Reply from xxx.xxx.xxx.xxx: bytes=32 time=10ms TTL=128
Ping statistics for xxx.xxx.xxx.xxx:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 9ms, Maximum = 11ms, Average = 10ms
如果未能ping通域名,则会显示类似以下的结果:
Ping request could not find host example.com. Please check the name and try again.
如果你使用的是Mac电脑,也可以使用以下命令进行ping:
ping -c 4 example.com
这将发送4个数据包到目标域名,并显示相应结果。
查看详情
查看详情