码迷,mamicode.com
首页 > 系统相关 > 详细

Linux测试端口是否可用

时间:2018-07-10 13:40:23      阅读:247      评论:0      收藏:0      [点我收藏+]

标签:dex   initial   ...   12px   init   sub   1.3   family   mic   

Linux测试端口是否可用

TCP 端口测试

格式:telnet ip port 
telnet 10.25.5.13 22 Trying 10.25.5.13... Connected to 10.25.5.13.  //端口通 Escape character is ‘^]‘. 退出使用 quit 
telnet 10.25.5.13 80 Trying 10.25.5.13... telnet:connect to address 10.25.5.13: Connection refused  //端口不通 

UDP 端口测试

例如测试告警信息通过syslog发送到某IP端口 nc -vuz 10.25.5.62 514 Connection to 10.25.5.62 514 port [udp/syslog] succeeded! //端口通

Linux测试端口是否可用

标签:dex   initial   ...   12px   init   sub   1.3   family   mic   

原文地址:https://www.cnblogs.com/zhangyunfei-blog/p/9288497.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!