1、查询全部的端口进程 netstat -nlp 2、关闭对应的进程号 kill 1、Linux下执行 netstat -nlp指令,查询出pid参数 2、执行kill命令,关闭相关进程 kill 2866