[root@oldboy ~]# telnet baidu.com 80 Trying 123.125.114.144... Connected to baidu.com (123.125.114.144). #==>出現Connected表示連通了,說明百度的80端口開放的 Escape character is '^]'. #==>ctrl+]退出此地。 ^] telnet> quit Connection closed.
[root@oldboy ~]# echo -e "\n"|telnet baidu.com 80|grep Connected Connection closed by foreign host. Connected to baidu.com (123.125.114.144).