命令: telnet ip port 退出: ctrl+] + quit
telnet ip port
ctrl+]
quit
查看端口: netstat -an|grep 80
netstat -an|grep 80
或者: netstat -ntulp |grep 80
netstat -ntulp |grep 80
查看程序使用的端口 netstat -ntulp |grep redis
netstat -ntulp |grep redis
参考:
linux使用telnet测试端口
原文:https://www.cnblogs.com/linyufeng/p/13218633.html