参考:https://blog.csdn.net/signjing/article/details/69535226

 

正常的情况

$ echo "" | telnet 101.199.97.65 62715
Trying 101.199.97.65...
Connected to 101.199.97.65.
Escape character is '^]'.
Connection closed by foreign host.

不正常的情况

$ echo "" | telnet 101.199.97.65 62715
Trying 101.199.97.65...
telnet: connect to address 101.199.97.65: Connection refused

使用这种方式可以将标准输出和标准错误重定向到文件中,通过分析文件的内容来判断端口打开状态

相关文章:

  • 2021-11-29
  • 2022-02-07
  • 2022-01-19
  • 2022-12-23
  • 2022-12-23
  • 2021-05-26
  • 2022-02-04
  • 2022-12-23
猜你喜欢
  • 2021-10-27
  • 2021-11-16
  • 2022-02-13
  • 2021-10-11
  • 2021-12-15
  • 2022-12-23
相关资源
相似解决方案