PHP中文网2017-04-17 13:36:43
PING uses the ICMP protocol, and many hosts will directly discard ICMP packets.
After reading everyone’s answers, wget or curl are more commonly used. These two are based on the HTTP protocol, and of course they can be used normally.
In addition, I also provide a more commonly used tool, using telnet. For example, telnet www.baidu.com 80