1.在dos下,输入netstat -ano|findstr "8081",查看端口使用情况。 2.查看该pid对应的进程名称tasklist|findstr "pid号" 3.taskkill /pid pid号 来停止端口占用。