一、查看哪些端口被打开 netstat -anp (查看所有23端口使用情况) netstat -an | grep 23 (查看符合条件的所有23端口使用情况) -t:tcp端口 -u: udp端口 其他参数自查 netstat -ntulp | grep 23