【Ubuntu】查看端口占用及关闭

风无心客 / 2023-05-15 / 原文

【Ubuntu】查看端口占用及关闭

1.查看端口pid: netstat -apn | grep 9091
下述例子端口id是9057
在这里插入图片描述
2.关闭端口:kill -9 pid 即kill -9 9057